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

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 https://github.com/njzhangyifei/xv11-...

I have got this working but the launch file looks directly at the USB port ( https://github.com/njzhangyifei/xv11-... )

<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"/>
  </node>

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
1

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

Comments

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
1

Comment out line 11 ( https://github.com/njzhangyifei/xv11-... ), 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

2 followers

Stats

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

Seen: 348 times

Last updated: Jan 05 '17