Open
Conversation
|
@mcbed we had some success with using the perform-switch function in system interface in ros2_canopen. It switches the mode depending on the claimed interface. This has the advantage that you can achieve behavior similar to a robot driver (e.g. ur). Probably depends on the targeted use case. |
Member
Author
|
@ipa-cmh thanks for the hint, we will try to add this feature in the near future together with lifecycle management in ros2_control |
JensVanhooydonck
suggested changes
Apr 23, 2024
Contributor
JensVanhooydonck
left a comment
There was a problem hiding this comment.
Seems there is a mismatch in amount of command interfaces and the offset when targeting each command interface
| { | ||
| controller_interface::InterfaceConfiguration conf; | ||
| conf.type = controller_interface::interface_configuration_type::INDIVIDUAL; | ||
| conf.names.reserve(dof_names_.size() * 2); |
Contributor
There was a problem hiding this comment.
This should be * 3
| } | ||
| } | ||
|
|
||
| command_interfaces_[2 * i + 1].set_value(mode_ops_[i]); // mode_of_operation |
| } | ||
|
|
||
| command_interfaces_[2 * i + 1].set_value(mode_ops_[i]); // mode_of_operation | ||
| command_interfaces_[2 * i + 2].set_value(reset_faults_[i]); // reset_fault |
Contributor
|
Works good for me with the changes above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR resolves issue #46.
Controller features for
ec_generic_cia402:status_wordmode_of_operationmode_of_operationusing servicesfault_resetservice