chvmp / robots

Collection of quadrupedal robots configured to work in CHAMP development framework
237 stars 66 forks source link

error using the go1 robot in gazebo #11

Closed juno100 closed 2 years ago

juno100 commented 2 years ago

after installation i command roslaunch go1_config gazebo.launch

but i have this error

Traceback (most recent call last): File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/init.py", line 347, in main p.start() File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 305, in start self._start_infrastructure() File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 254, in _start_infrastructure self._load_config() File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 157, in _load_config roslaunch_strs=self.roslaunch_strs, verbose=self.verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/config.py", line 461, in load_config_default loader.load(f, config, argv=args, verbose=verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 761, in load self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 733, in _load_launch self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 699, in _recurse_load val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 96, in call return f(*args, kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 634, in _include_tag default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 699, in _recurse_load val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 96, in call return f(*args, *kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 634, in _include_tag default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 669, in _recurse_load default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 699, in _recurse_load val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 96, in call return f(args, kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 634, in _include_tag default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 679, in _recurse_load self._param_tag(tag, context, ros_config, verbose=verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 96, in call return f(*args, *kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 271, in _param_tag value = self.param_value(verbose, name, ptype, vals) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/loader.py", line 476, in param_value with open(textfile, 'r') as f: IOError: [Errno 2] No such file or directory: u'/~/catkin_ws/src/spot_ros/spot_description/urdf/spot.urdf'

what's the problem...?

grassjelly commented 2 years ago

did you change the config file? It seems that it’s looking for Spot’s description file

juno100 commented 2 years ago

thank you for response

how to change the config file?

i pasted different error

my error is

Traceback (most recent call last): File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/init.py", line 347, in main p.start() File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 305, in start self._start_infrastructure() File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 254, in _start_infrastructure self._load_config() File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 157, in _load_config roslaunch_strs=self.roslaunch_strs, verbose=self.verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/config.py", line 461, in load_config_default loader.load(f, config, argv=args, verbose=verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 761, in load self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 733, in _load_launch self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 699, in _recurse_load val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 96, in call return f(*args, kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 634, in _include_tag default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 699, in _recurse_load val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 96, in call return f(*args, *kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 634, in _include_tag default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 669, in _recurse_load default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 699, in _recurse_load val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 96, in call return f(args, kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 634, in _include_tag default_machine, is_core, verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 679, in _recurse_load self._param_tag(tag, context, ros_config, verbose=verbose) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 96, in call return f(*args, *kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 271, in _param_tag value = self.param_value(verbose, name, ptype, vals) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/loader.py", line 476, in param_value with open(textfile, 'r') as f: IOError: [Errno 2] No such file or directory: u'/home/catkin_ws/src/unitree_ros/robots/go1_description/xacro/go1.champ.urdf'

grassjelly commented 2 years ago

you’re missing this https://github.com/chvmp/robots/blob/master/install_descriptions#L17

juno100 commented 2 years ago

oh i re-install and then it is working!

thank you very much!