ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to fix [Errno 2] No such file or directory

asked 2016-02-11 00:55:25 -0600

jaymo3141 gravatar image

updated 2018-11-28 13:37:58 -0600

jayess gravatar image

Hi all,

I am trying to run the following launch file: hector_neato.launch

<?xml version="1.0"?>
<launch>
  <node pkg="xv_11_laser_driver" type="neato_laser_publisher" name="xv_11_node">
    <!--<param name="port" value="/dev/tty.usbserial-A9UXLBBR"/>-->
    <param name="port" value="/dev/ttyUSB0"/>
    <param name="firmware_version" value="2"/>
    <param name="frame_id" value="laser"/>
  </node>
  <node pkg="tf" type="static_transform_publisher" name="base_frame_2_laser" args="0 0 0 0 0 0 /base_frame /laser 100"/> 
  <node pkg="rviz" type="rviz" name="rviz" args="-d rviz_cfg.rviz"/>
  <include file="default_mapping.launch"/> 
  <include file="$(find hector_geotiff)/launch/geotiff_mapper.launch"/>
</launch>

When I run it it gives me the following error

while processing default_mapping.launch: Invalid roslaunch XML syntax: [Errno 2] No such file or directory: u'default_mapping.launch' The traceback for the exception was written to the log file

This doesn't make sense because the file that it's complaining about is in the same directory as hector_neato.launch which is

/opt/ros/indigo/share/hector_slam_launch/launch

Please help.


Edit: Never mind I fixed it. I just got rid of the include and copy and pasted default_mapping.launch into hector_neato.launch.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-02-12 00:36:33 -0600

jaymo3141 gravatar image

I figured it out. I was missing the "/launch/" in the path. Don't know why I didn't see it.

Also the two launch files hector_neator.launch and default_mapping.launch came from this project https://www.youtube.com/watch?v=jSlkj... (see comments section)

Thank you all for your help.

edit flag offensive delete link more
0

answered 2016-02-11 03:34:41 -0600

gvdhoorn gravatar image

updated 2016-02-11 03:42:56 -0600

Never mind I fixed it. I just got rid of the include and copy and pasted default_mapping.launch into hector_neato.launch.

That is more a work-around.

<launch>
  <node pkg="xv_11_laser_driver" type="neato_laser_publisher" name="xv_11_node">
    ...
  <include file="default_mapping.launch"/> 
    ...
</launch>

I would think you are missing the $(find hector_slam_launch)/launch/ (or something similar, just add wherever default_mapping.launch is actually located) part in your <include file="" /> tag. Can you check to see whether it works if you add that?


Edit: Can you please tell us which version of hector_slam_launch you are using? The launch directory in tu-darmstadt-ros-pkg/hector_slam/hector_slam_launch (from wiki/hector_slam_launch) does not contain a default_mapping.launch nor a hector_neato.launch.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-11 00:55:25 -0600

Seen: 3,859 times

Last updated: Nov 28 '18