Skip to content
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

fixed mock hardware for botwheel explorer #28

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,25 @@
</xacro:if>
<joint name="${prefix}left_wheel_joint">
<param name="node_id">0</param>
<command_interface name="velocity"/>
<command_interface name="position"/>
<command_interface name="torque"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

torque needs to be renamed to effort (4x). Otherwise, when I try it with the real hardware interface, it crashes with:

[ros2_control_node-1] terminate called after throwing an instance of 'std::runtime_error'
[ros2_control_node-1]   what():  Wrong state or command interface configuration.
[ros2_control_node-1] missing state interfaces:
[ros2_control_node-1] ' left_wheel_joint/torque '       ' right_wheel_joint/torque '
[ros2_control_node-1] missing command interfaces:
[ros2_control_node-1] ' left_wheel_joint/torque '       ' right_wheel_joint/torque '

<state_interface name="position"/>
<state_interface name="velocity"/>
<state_interface name="torque"/>
</joint>
<joint name="${prefix}right_wheel_joint">
<param name="node_id">1</param>
<command_interface name="velocity"/>
<command_interface name="position"/>
<command_interface name="torque"/>
<state_interface name="position"/>
<state_interface name="velocity"/>
<state_interface name="torque"/>
</joint>

</ros2_control>

</xacro:macro>

</robot>
</robot>
Loading