Ask Your Question
0

ROS param not appearing

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

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

controller_list:
 - name: arm_controller
   action_ns: follow_joint_trajectory
   type: FollowJointTrajectory
   default: true
   joints:
     - 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!

Thanks]

edit retag flag offensive close merge delete

Comments

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

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

1 Answer

Sort by ยป oldest newest most voted
0

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

bgraysea gravatar image

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

controller_list:
 []
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

Stats

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

Seen: 20 times

Last updated: Jul 30