-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add position control mode #98
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #98 +/- ##
==========================================
- Coverage 62.00% 54.65% -7.36%
==========================================
Files 23 26 +3
Lines 2011 2684 +673
==========================================
+ Hits 1247 1467 +220
- Misses 764 1217 +453 ☔ View full report in Codecov by Sentry. |
This class is mainly copied from the `ControlBoardDriverTrajectory` class from gazebo-yarp-plugins, adapted to work with the new gazebo APIs
- Remove dependency from not used model pointer - Add traj. generator factory class
- JointProperties updated to contain fields related to trajectory generation - Add a field to store control update period in ControlBoardData (now with a constant value, soon it will be read from configuration)
Also update the `initTrajectory` method to accept the control update period
Note: the correct behavior is to decouple the controller update rate from the simulation one; this will be addressed in a future issue
The deadlock was caused to the call to `getLimits` that tried to acquire the lock already acquired by the calling method.
5528c12
to
2b72cd7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments, I think this is ready to go!
fyi @randaz81
Also, fix the default value for joint acceleration in the trajectory
a4e49b1
to
bb2e705
Compare
I have squashed minor commits maintaining only the main ones. Merging. |
This PR adds to the control board plugin the implementation of IPositionControl
This control mode uses a trajectory generator to interpolate between subsequent position references, with multiple possible options (at the moment they are trapezoidal velocity profile, minimum jerk trajectory, constant velocity).
Closes #83