sharp ir sensor
i add 8 sharp ir into my robot, how to see in my rviz, and how to add tf for ir laser. my main laser is hokuyo ust 10lx. help me please. thank you
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Easiest way is to add the IR frame position to your URDF robot description. Assuming you are already publishing the robot state, that should add the TF for the IR sensor automatically. You'll also have to write a node to read the analog values from the IR sensor and convert to a distance, then publish that. It's probably easiest to make the IR sensor look like a laser scanner with only a single scan point. (Reason: some off-the-shelf ROS nodes will work with laser scan messages but not single distance reading messages. Sigh...)
Asked: 2018-03-23 21:34:35 -0500
Seen: 324 times
Last updated: Apr 03 '18