SHOP News & Articles Contact Impressum

Rpi DSC: no file con.yaml


#1

Hello I am getting an error when I try to run the first example of the ROS node “dsc.launch”. There is no con.yaml file in the config folder.

Do you have an example of the con.yaml file I can use to write my own? or could you include one in the servo_board package? Thanks

ubuntu@ubiquityrobot:~/catkin_ws$ roslaunch servo_board dsc.launch
... logging to /home/ubuntu/.ros/log/79cd1d2a-d0dc-11e5-81b6-b827eb932e96/roslaunch-ubiquityrobot-4977.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

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

#2

I tried to write my own con.yaml file based on the screenshot you have in the directions but I keep getting an error:

ubuntu@ubiquityrobot:~/catkin_ws/src/servo_board/config$ roslaunch servo_board dsc.launch
... logging to /home/ubuntu/.ros/log/79cd1d2a-d0dc-11e5-81b6-b827eb932e96/roslaunch-ubiquityrobot-5353.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

error loading <rosparam> tag: 
	file /home/ubuntu/catkin_ws/src/servo_board/config/con.yaml contains invalid YAML:
while scanning a simple key
  in "<string>", line 3, column 1:
    joints:{
    ^
could not found expected ':'
  in "<string>", line 4, column 1:
    j1:{id:[1]},
    ^
XML is <rosparam command="load" file="$(find servo_board)/config/con.yaml"/>
The traceback for the exception was written to the log file

[SOLVED]
I figured out that there needs to be a space between the “:” and the “{” which was hard to tell from the image. Also there needs to NOT be any “tabs”, so no spaces or 2 spaces seems to work. Here is my working example:

use_lib: "false"

joints: {
j1:{id:[1]},
j2:{id:[2]},
j3:{id:[3]},
}