Ask Your Question

ROS param not appearing

asked 2020-07-30 09:19:18 -0600

bgraysea gravatar image

In my launch file I have the line

<rosparam command="load" file="$(find rviz_coco_demo)/config/controllers.yaml"/>

The contents of controllers.yaml is

 - name: arm_controller
   action_ns: follow_joint_trajectory
   type: FollowJointTrajectory
   default: true
     - wheel_turn_joint
     - arm2_tele_joint
     - wrist1_lin_joint

After launching my file; I don't see controller_list

rosparam get /controller_list

If I update the launch file to refer to an invalid file name; then I get the below error; so I'm confident this line is running.

RLException: error loading <rosparam> tag: file does not exist [/.../config/xxxcontrollers.yaml] XML is <rosparam command="load" file="$(find rviz_coco_demo)/config/xxxcontrollers.yaml"/> The traceback for the exception was written to the log file

If I manually load the file; it will appear as expected

rosparam load install/.../config/controllers.yaml 

rosparam get controller_list
- action_ns: follow_joint_trajectory
  default: true
  joints: [wheel_turn_joint, arm2_tele_joint, wrist1_lin_joint]
  name: arm_controller
  type: FollowJointTrajectory

Any thoughts on what I am getting wrong in the launch file would be much appreciated!


edit retag flag offensive close merge delete


hmmmmmmmmmmmmm; perhaps something else is overwriting it after that command runs

bgraysea gravatar image bgraysea  ( 2020-07-30 09:22:34 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-07-30 09:30:10 -0600

bgraysea gravatar image

Yes indeed; ros_controllers.yaml which had been auto generated by rViz setup tool had

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-07-30 09:19:18 -0600

Seen: 172 times

Last updated: Jul 30 '20