Errors in setting up ROS tutorial workspace in "tf tutorials"
Hi everyone,
I am learning ROS (ROS cturtle) from the tutorials. I got an error when setting up the ROS tutorial workspace in "tf/tutorials".
It asked me to:
Create a file named ~/tutorials.rosinstall with the following content:
- other: local-name: workspace
To overlay on cturtle:
rosinstall ~/tutorials /opt/ros/cturtle ~/tutorials.rosinstall
I got confused with the term "workspace". I assume i gotta replace it with my working directory. I put it like
- other: local-name: ~/tutorials.
Then I run
rosinstall ~/tutorials /opt/ros/cturtle ~/tutorials.rosinstall
It prompts me an error:
rosinstall operating on /home/vincent/tutorials from specifications in rosinstall files /home/vincent/tutorials/.rosinstall, /opt/ros/cturtle, /home/vincent/tutorials.rosinstall processing config_uri /opt/ros/cturtle ahhhhhhhh, yaml parse error: mapping values are not allowed here in "/home/vincent/tutorials.rosinstall", line 3, column 19 Usage: rosinstall PATH [<options> ...] [URI]...
rosinstall: error: None
Deleting the space between "local-name" and "~/tutorials" in that command-line solved this error. But got another error:
rosinstall operating on /home/vincent/tutorials from specifications in rosinstall files /home/vincent/tutorials/.rosinstall, /opt/ros/cturtle, /home/vincent/tutorials.rosinstall
processing config_uri /opt/ros/cturtle
Traceback (most recent call last):
File "/usr/local/bin/rosinstall", line 5, in <module>
pkg_resources.run_script('rosinstall==0.5.16', 'rosinstall')
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1194, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.6/dist-packages/rosinstall-0.5.16-py2.6.egg/EGG-INFO/scripts/rosinstall", line 556, in <module>
sys.exit(not rosinstall_main(sys.argv))
File "/usr/local/lib/python2.6/dist-packages/rosinstall-0.5.16-py2.6.egg/EGG-INFO/scripts/rosinstall", line 506, in rosinstall_main
result = insert_source_yaml(source_yaml, a, observed_paths, aggregate_source_yaml)
File "/usr/local/lib/python2.6/dist-packages/rosinstall-0.5.16-py2.6.egg/EGG-INFO/scripts/rosinstall", line 386, in insert_source_yaml
path = element[k]['local-name']
TypeError: string indices must be integers, not str
And I also tried replacing "workspace" with "/opt/ros/cturtle/stack" or "/opt/ros/cturtle/ros" or "/opt/ros/cturtle". They gave basically the same errors.
Can someone help me out? Probably obvious to everyone else, please excuse my dumbness.-_-