Robotics StackExchange | Archived questions

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~/catkinws/src/masteringrosrobotdescriptionpkg/masteringrosrobotdescriptionpkg/launch/viewdemo.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.startinfrastructure()

File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 238, in startinfrastructure self.loadconfig()

File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 144, in loadconfig roslaunchstrs=self.roslaunchstrs, verbose=self.verbose)

File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/config.py", line 461, in loadconfigdefault 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.loadlaunch(launch, rosconfig, iscore=core, filename=filename, argv=argv, verbose=verbose)

File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 733, in loadlaunch self.recurseload(rosconfig, launch.childNodes, self.rootcontext, None, is_core, verbose)

File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 679, in recurseload self.paramtag(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 paramtag 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/catkinws/src/masteringrosrobotdescriptionpkg/urdf/pantilt.urdf'

Asked by nullspace on 2020-09-14 09:38:26 UTC

Comments

@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:

roslauch mastering_ros_robot_description_pkg view_demo.launch

Asked by Weasfas on 2020-09-16 04:29:47 UTC

Answers