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

Updating a Launch file to look at a Publisher

asked 2017-01-04 14:49:29 -0600

burf2000 gravatar image

updated 2017-01-05 07:14:22 -0600

I am trying to get Lidar (Neato) and mapping (Hector) working together, this has been done here

I have got this working but the launch file looks directly at the USB port ( )

<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/tty.LIDAR-DevB"/>
    <param name="firmware_version" value="2"/>
    <param name="frame_id" value="laser"/>

However I now have my Lidar working on my robot and running ROS (RVIZ) on my Desktop and so the port is on a different machine (ROS_MASTER_URI is all setup)

How do I update the Launch file to look at the remote robot for the Lidar Node?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-04 21:16:09 -0600

clyde gravatar image

The neato_laser_publisher node needs to run on the robot controller, not your desktop, precisely so that it can access the device hardware.

In practice, I've found that it's best to have essentially all nodes running on the robot controller, and only run rviz and other diagnostic tools on your desktop. This will minimize network traffic and make your robot more resilient to networking problems.

edit flag offensive delete link more


Yes thats what I thought but how can I update the Launch file to point at the Lidar node on the robot instead of the settings listed

burf2000 gravatar image burf2000  ( 2017-01-05 02:08:11 -0600 )edit

Comment out line 11 ( ), then roslaunch this file on the robot. On the desktop, run this: "rosrun rviz rviz -d rviz_cfg.rviz".

clyde gravatar image clyde  ( 2017-01-05 11:27:39 -0600 )edit

Question Tools



Asked: 2017-01-04 14:49:29 -0600

Seen: 312 times

Last updated: Jan 05 '17