TF Listener

asked 2018-10-01 02:50:54 -0500

S.Yildiz gravatar image

I want to create a class tf_listener. I'm using a laser, so the node for the laser data already exists. I looked at some tutorials and saw that they are using pointstamped. But my laser publishes with the type sensor_msgs/LaserScan. How should I write the subscriber in the class? Or the whole tf listener?

edit retag flag offensive close merge delete

Comments

What is your problem precisely? In your case you just create basic subscriber to the topic your laser is publishing to. If you want to do something with the transformation you just get the transformation (look here).

l4ncelot gravatar image l4ncelot  ( 2018-10-01 03:17:34 -0500 )edit

Then you need to convert your laser data to 3d point on which you apply your transformation.

l4ncelot gravatar image l4ncelot  ( 2018-10-01 03:19:46 -0500 )edit