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
I have a mobile robot with a small arm. When try to start the diff drive for the base with the joint_trajectory_controller for the arm . The first controller is loaded then fails living the second controller live.Individualy both controller are working properly.
Her is the controller.yaml followed by the runtime error.
My goal is to have simultaneous motions of the of the base and the arm.
controller_manager:
ros__parameters: # 'est ce fichier qui est utilisé dans d2.realupdate_rate: 20# Hzbase_controller:
type: diff_drive_controller/DiffDriveControllerarm_controller:
type: joint_trajectory_controller/JointTrajectoryControllerjoint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster arm_controller:
ros__parameters:
command_interfaces:
- positionstate_interfaces:
- position
- velocityallow_partial_joints_goal: truejoints:
- elbow
- wrist
- rotator
- lateral
- gripper
- gripper_topbase_controller:
ros__parameters:
left_wheel_names: ["left_wheel_joint"]right_wheel_names: ["right_wheel_joint"]wheel_separation: 0.8#wheels_per_side: 1 # actually 2, but both are controlled by 1 signalwheel_radius: 0.25wheel_separation_multiplier: 1.0left_wheel_radius_multiplier: 1.0right_wheel_radius_multiplier: 1.0publish_rate: 50.0odom_frame_id: odom_difbase_frame_id: base_footprint2pose_covariance_diagonal : [0.001, 0.001, 0.001, 0.001, 0.001, 0.01]twist_covariance_diagonal: [0.001, 0.001, 0.001, 0.001, 0.001, 0.01]open_loop: trueenable_odom_tf: truecmd_vel_timeout: 0.5#publish_limited_velocity: true#velocity_rolling_window_size: 10# Velocity and acceleration limits# Whenever a min_* is unspecified, default to -max_*linear.x.has_velocity_limits: truelinear.x.has_acceleration_limits: truelinear.x.has_jerk_limits: falselinear.x.max_velocity: 0.3linear.x.min_velocity: -0.3linear.x.max_acceleration: 1.0linear.x.max_jerk: 0.0linear.x.min_jerk: 0.0angular.z.has_velocity_limits: trueangular.z.has_acceleration_limits: trueangular.z.has_jerk_limits: falseangular.z.max_velocity: 0.3angular.z.min_velocity: -0.3angular.z.max_acceleration: 1.0angular.z.min_acceleration: -1.0angular.z.max_jerk: 0.0angular.z.min_jerk: 0.0
Run time error :+[spawner-4] [INFO] [1711075842.059151005] [spawner_arm_controller]: Loaded arm_controller
[ros2_control_node-1] [INFO] [1711075842.144777239] [controller_manager]: Configuring controller 'arm_controller'
[ros2_control_node-1] [INFO] [1711075842.145505820] [arm_controller]: No specific joint names are used for command interfaces. Using 'joints' parameter.
[ros2_control_node-1] [INFO] [1711075842.145875860] [arm_controller]: Command interfaces are [position] and state interfaces are [position velocity].
[ros2_control_node-1] [INFO] [1711075842.145925492] [arm_controller]: Using 'splines' interpolation method.
[ros2_control_node-1] [INFO] [1711075842.158437313] [arm_controller]: Controller state will be published at 50.00 Hz.
[ros2_control_node-1] [INFO] [1711075842.167363825] [arm_controller]: Goals with partial set of joints are allowed
[ros2_control_node-1] [INFO] [1711075842.167431143] [arm_controller]: Action status changes will be monitored at 20.00 Hz.
[spawner-4] [INFO] [1711075842.300252579] [spawner_arm_controller]: Configured and activated arm_controller
[INFO] [spawner-4]: process has finished cleanly [pid 883506]
[ros2_control_node-1] [INFO] [1711075842.651619667] [controller_manager]: Loading controller 'base_controller'
[spawner-5] [INFO] [1711075842.801189537] [spawner_base_controller]: Loaded base_controller
[ros2_control_node-1] [INFO] [1711075842.888846258] [controller_manager]: Configuring controller 'base_controller'
[ros2_control_node-1] [ERROR] [1711075842.958027289] [resource_manager]: Not acceptable command interfaces combination:
[ros2_control_node-1] Start interfaces:
[ros2_control_node-1] [
[ros2_control_node-1] left_wheel_joint/velocity
[ros2_control_node-1] right_wheel_joint/velocity
[ros2_control_node-1] ]
[ros2_control_node-1] Stop interfaces:
[ros2_control_node-1] [
[ros2_control_node-1] ]
[ros2_control_node-1] Not existing:
[ros2_control_node-1] [
[ros2_control_node-1] left_wheel_joint/velocity
[ros2_control_node-1] right_wheel_joint/velocity
[ros2_control_node-1] ]
[ros2_control_node-1]
[ros2_control_node-1] [ERROR] [1711075842.958119589] [controller_manager]: Could not switch controllers since prepare command mode switch was rejected.
[spawner-5] [ERROR] [1711075842.963628502] [spawner_base_controller]: Failed to activate controller
The text was updated successfully, but these errors were encountered:
I don't see why it should not work now. How do you spawn your controllers? Can you please add the output of ros2 control list_hardware_interfaces and ros2 control list_hardware_components -vros2 control list_controllers -v?
I have a mobile robot with a small arm. When try to start the diff drive for the base with the joint_trajectory_controller for the arm . The first controller is loaded then fails living the second controller live.Individualy both controller are working properly.
Her is the controller.yaml followed by the runtime error.
My goal is to have simultaneous motions of the of the base and the arm.
The text was updated successfully, but these errors were encountered: