-
Notifications
You must be signed in to change notification settings - Fork 39
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
SRC-4962 Add command effort type #115
base: noetic-devel
Are you sure you want to change the base?
Conversation
{ | ||
} | ||
|
||
bool enable_; //!< Enable this actuator | ||
double effort_; //!< Force to apply (in Nm) | ||
double effort_; //!< Effor to apply, unit depends on effort_command_type_ field |
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.
Typo in the comment "effor"
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.
Fixed in fa9de9e.
double effort_; //!< Effor to apply, unit depends on effort_command_type_ field | ||
EffortCommandType effort_command_type_; //!< Type of effort in effort_ field | ||
|
||
void set_effort_command(double effort, EffortCommandType effort_command_type) |
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.
Do we need a set method? None of the other fields have one.
Maybe it's better to keep the style uniform?
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.
Idea was for all new code to use setter method because both fields should be set at the same time. Happy to remove it.
Proposed changes
Add command effort type. It allows controllers to indicate type of effort commands for actuators.
Checklist
If the task is applicable to this pull request (see applicability criteria in brackets), make sure it is completed before checking the corresponding box. Otherwise, tick the box right away. Make sure that ALL boxes are checked BEFORE the PR is merged.