Robotics StackExchange | Archived questions

TF Listener

I want to create a class tflistener. 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 sensormsgs/LaserScan. How should I write the subscriber in the class? Or the whole tf listener?

Asked by S.Yildiz on 2018-10-01 02:50:54 UTC

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).

Asked by l4ncelot on 2018-10-01 03:17:34 UTC

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

Asked by l4ncelot on 2018-10-01 03:19:46 UTC

Answers