Closed pep248 closed 2 months ago
Hey @pep248,
do you start the External Control program on the robot? Because without that the controller will stay inactive.
If you want, you can start it also from the terminal, using the headless_mode
option: ros2 launch ur_robot_driver ur_control.launch.py ur_type:=ur10e robot_ip:=172.16.7.75 launch_rviz:=false headless_mode:=true
For further reference: you can also find the step in our documentation .
Thanks a lot! That did the trick!
Affected ROS2 Driver version(s)
latest
Used ROS distribution.
Humble
Which combination of platform is the ROS driver running on.
Ubuntu Linux with realtime patch
How is the UR ROS2 Driver installed.
From binary packets
Which robot platform is the driver connected to.
UR E-series robot
Robot SW / URSim version(s)
latest
How is the ROS driver used.
Through the robot teach pendant using External Control URCap
Issue details
Summary
scaled_joint_trajectory_controller starts as inactive
Issue details
i ran the following commands in two different windows:
ros2 launch ur_robot_driver ur_control.launch.py ur_type:=ur10e robot_ip:=172.16.7.75 launch_rviz:=false
ros2 launch ur_moveit_config ur_moveit.launch.py ur_type:=ur10e launch_rviz:=true
and, by default I was unable to move the robot using the rviz MotionPlanning interface.
Then, on a 3rd terminal, i ran the following command:
ros2 control list_controllers
and the output was the following:
I don't know why said controller is automatically set to inactive.
if I manually set it to active, it works like a charm:
ros2 control set_controller_state scaled_joint_trajectory_controller active
but I don't want to be doing this by hand.I will share the output of the controller launch.
Steps to Reproduce
I simply downloaded the ros-humble-ur-* packages and launched as described.
Expected Behavior
I expected the scaled_joint_trajectory_controller to start as "active"
Actual Behavior
The scaled_joint_trajectory_controller to start as "inactive"
Workaround Suggestion
ros2 control set_controller_state scaled_joint_trajectory_controller active
Relevant log output
Accept Public visibility