First time here? Check out the FAQ!


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

Distance measurements and tf

asked Jul 14 '11

Poseidonius gravatar image

updated Jan 28 '14

ngrennan gravatar image

Hi everyone,

I monitor a small robot with a number of external distance sensors. The sensors are implemented as ROS nodes publishing their results. Now I want to integrate a mechanism that allows a transformation of the measurements related to a known position of the sensor. Short

Distance measurements + Sensor Position = correct representation in the world

I guess their exists a solution for this problem in ROS?

Best wishes from Germany

Poseidonius

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered Jul 15 '11

Miguel Prada gravatar image

updated Jul 19 '11

Best way is probably to use URDF and robot_state_publisher to define and publish your robot description, including sensor location, to tf.

Then, if you publish your sensor data using one of the message types with a built-in rviz display (e.g. sensor_msgs/Range) you will be able to easily visualize it on 3D.

Preview: (hide)

Comments

There's also a Range datatype defined in sensor_msgs http://www.ros.org/doc/api/sensor_msgs/html/msg/Range.html for which there are rviz visualizers in the nxt packages and soon will be built into rviz.
tfoote gravatar image tfoote  ( Jul 19 '11 )edit
2

answered Jul 14 '11

Mac gravatar image

As you've already noticed, tf is the tool you want. Define frames for your various items, publish the transforms between them, and you're good to go. See the tf tutorials.

Preview: (hide)

Comments

Question Tools

1 follower

Stats

Asked: Jul 14 '11

Seen: 2,236 times

Last updated: Jul 19 '11