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

Revision history [back]

click to hide/show revision 1
initial version

In this case you have to convert encoder ticks into nav_msgs/Odometry Messages. Take a look at navigation/Tutorials/RobotSetup/Odom in the wiki to basically understand what is required.

Which might be (there a multiple options available):

  1. Find out what needs to be done to convert the information from your hall sensors into a position. This is very robot specific.
  2. Port the code from the wiki to your arduino on your robot using rosserial to publish the Odometry. Rosserial is of course only one way to connect an arduino to your PC, but you should try it.

Depending on your vehicle you might also be able to use the differential_drive package.

In this case you have to convert encoder ticks into nav_msgs/Odometry Messages. Take a look at navigation/Tutorials/RobotSetup/Odom in the wiki to basically understand what is required.

Which might be (there a multiple options available):

  1. Find out what needs to be done to convert the information from your hall sensors into a position. This is very robot specific.
  2. Port the code from the wiki to your arduino on your robot using rosserial to publish the Odometry. Rosserial is of course only one way to connect an arduino to your PC, but you should try it.

Depending on your vehicle you might also be able to use the differential_drive package.

If you publish both, the position of your lidar relative to the robot and the position of the robot as tf tf (as described in the Odometry tutorial), then yes, you also have the position of the lidar in the odom frame and rviz will display it properly.