tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Expand JointLimits

Open mpowelson opened this issue 3 years ago • 2 comments

Allow different upper/lower bounds on velocity and acceleration and add jerk limits. This will be useful if we write a wrapper for ruckig, which supports these things.

mpowelson avatar Apr 20 '21 21:04 mpowelson

Sounds reasonable to me. Do you have a proposed updated to the data structure?

Levi-Armstrong avatar Apr 21 '21 12:04 Levi-Armstrong

Not really. I was just posting this as a reminder of a potentially breaking change we might want to make soon. However, I would imagine something like this. We could use std::pair, but I kind of like position.lower better than position.first

class Bounds
{
  public:
   Bounds(double lower, double upper) ;
   Bounds(double upper) : upper(upper) { lower = -upper;}
   double lower;
   double upper;
}

class JointLimits
{
public:

  JointLimits() { this->clear(); }
  Bounds position;
  Bounds effort;
  Bounds velocity;
  Bounds acceleration;
  Bounds jerk;  
...
};

mpowelson avatar Apr 21 '21 15:04 mpowelson

This is now supported

Levi-Armstrong avatar Jun 22 '24 23:06 Levi-Armstrong