Home | Tutorials | Wiki | Issues
Ask Your Question
0

subscribe to topic of laser in standalone version of gazebo

asked 2013-05-09 11:07:42 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi all,

I installed standalone version of Gazebo and i put a simulated pioneer3at in the environment with laser scanner, and i can get data of laser in shell with this command

gztopic echo /gazebo/default/pioneer3at/hokuyo/link/laser/scan

but i want to subscribe to this topic like this, anyone can help me???

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-05-09 19:19:38 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Follow the tutorial in the link and instead of subscribing to ~/world_stats, replace the string with topic name you posted.

Here is an example of subscribing to Gazebo laser topic.

edit flag offensive delete link more

Comments

Thank you so much, I modify the listener for getting data of laser, i put [it](https://bitbucket.org/Vahid_Azizi/laser-listener-in-standalone-version-of-gazebo/src/a8c6d5e3677223ac9f738f091cb0fff1f14d3e8b/listener.cc?at=master) here.

Vahid gravatar imageVahid ( 2013-05-10 03:26:43 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-05-09 11:07:42 -0500

Seen: 1,172 times

Last updated: May 10 '13