-
Notifications
You must be signed in to change notification settings - Fork 235
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
Velocity command interface #694
Comments
For Foxy, velocity commands have not been implemented. We suggest to use ROS 2 humble, since Foxy is end of life by now. For humble, a forwarding velocity controller is built in and simply has to be activated using the tldr: ros2 control load_controller forward_velocity_controller
ros2 control set_controller_state forward_velocity_controller inactive
ros2 control switch_controllers --deactivate scaled_joint_trajectory_controller --activate forward_velocity_controller
# start motion
ros2 topic pub --once /forward_velocity_controller/commands std_msgs/msg/Float64MultiArray "{data:[0,0,0,0,0,0.1]}"
# stop motion
ros2 topic pub --once /forward_velocity_controller/commands std_msgs/msg/Float64MultiArray "{data:[0,0,0,0,0,0.0]}" |
Thanks for the clarification. |
Hi, I am using ROS2 humble and I follow your instructions:
but the robot is not moving. |
Confirmed that with fake hardware this does not work. With URSim / a real robot this works, however. |
As a comment: Velocity mode for mock_hw is currently being implemented in ros2_control: ros-controls/ros2_control#1028 I've just tested this and with that the robot is indeed moving on velocity commands. |
Hi,
I am trying to control an UR robot both in simulation and with the real hardware with the command interface in velocity with ROS2 foxy. The values of the joint velocities states, in simulation, are changing but the robot is not moving. While if I try to move the robot using the position command interface I can do it.
Is it possible to move the robot only using the velocity command interface? If so, is there any example on how to do it?
Thanks.
The text was updated successfully, but these errors were encountered: