unable to launch .launch file
when i execute this command ia m getting this error i have even tried "source /opt/ros/kinetic/setup.bash" roslauch~/catkin_ws/src/mastering_ros_robot_description_pkg/mastering_ros_robot_description_pkg/launch/view_demo.launch
... logging to /home/h/.ros/log/14c16a28-f691-11ea-8bea-080027543667/roslaunch-hari18-6588.log
Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
Traceback (most recent call last):
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 332, in main p.start()
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 289, in start self._start_infrastructure()
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 238, in _start_infrastructure self._load_config()
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 144, 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 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/h/catkin_ws/src/mastering_ros_robot_description_pkg/urdf/pan_tilt.urdf'
@nullspace I think the main problem here is that catkin is unable to find the URDF description, and then all the next errors occur in cascade. Have you tried to access that file from
roscd
command for instance.Furthermore looking at the command you are using:
roslauch~/catkin_ws/src/mastering_ros_robot_description_pkg/mastering_ros_robot_description_pkg/launch/view_demo.launch
, this is not the proper way to launch a file: it would be something like: