You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launch the ros2_control_demo example 3 file configured to use mock hardware (with the forward_velocity_controller loaded to begin with, which is unchanged from the example):
Observe that in the rviz2 window, there is no movement of the rrbot. I believe this is because mock hardware doesn't work with forward velocity control. I discovered this while working on a different robot, but figured using one of the examples would be the easiest way to demonstrate it.
To show that position control works with mock hardware, stop the previous command in the 2nd terminal window with ctrl+c and run the following:
ros2 control load_controller forward_position_controller --set-state active
NOTE: the following only works if you set the state as active when loading, despite the fact that there will be a warning due to trying to activate twice. I should probably file another issue about that.
ros2 control switch_controllers --activate forward_position_controller --deactivate forward_velocity_controller
Expected behavior
I expect that the mock forward velocity control would work the same as running the following, minus being spammed with terminal output:
close all previous commands, and run (again in a window with the ws built and sourced)
Describe the bug
Mock hardware does not work with forward_velocity_controller.
To Reproduce
Steps to reproduce the behavior:
ctrl+c
and run the following:NOTE: the following only works if you set the state as active when loading, despite the fact that there will be a warning due to trying to activate twice. I should probably file another issue about that.
paste the position command from the example 3 tutorial:
Expected behavior
I expect that the mock forward velocity control would work the same as running the following, minus being spammed with terminal output:
Environment (please complete the following information):
Additional context
ros2_control has not been modified.
The text was updated successfully, but these errors were encountered: