WrenchController, PoseController, etc... #82
buschbapti
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The base
Controller
class is needed to define a structure but does not allow to put part of the code that would be reused by derived controller. An alternative would be to add extra derived class as:PoseController
: to go fromCartesianPose
toJointPositions
TwistController
: to go fromCartesianTwist
toJointVelocities
WrenchController
: to go fromCartesianWrench
toJointTorques
The only drawback I see with that approach is that some controller could be a bit more hybrid or the robot need some conversions in the command, e.g.:
TwistController
but my robot only accept positions command so I need to integrate theJointVelocities
TwistController
but I want to command torques (which is what theImpedance
is actually doing)I think we need to refine a bit on that question because that seems like we could come up with a much better solution to avoid code duplication.
Beta Was this translation helpful? Give feedback.
All reactions