Gazebo | Ignition | Community
Ask Your Question
0

Gazebo Pioneer2dx with hokuyo Laser, GetDistance

asked 2022-04-12 02:24:43 -0600

senseimori gravatar image

Hello, im working on a Project for my University. Im looking for the information of the Hokuyo Sensor.

To be more exact. If you create a Plugin to control a pioneer2dx you can control it by using SetVelocity(0.1 , 0 , 0) on the joints or the model itself. I found a class called "LaserView" and a header "laserView.hh" but as far as i could see there wasnt a function like "GetDistance()" or something. What do i mean by "GetDistance". When you check the picture you see the distance between the Sensor and an Object (Box) C:\fakepath\distance.png and i dont know how to get that data. I can only guess that it is a function where you have to enter a double which is the angle and it returns another double which has the distance to the next object or maxrange when there is nothing.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-04-13 09:18:42 -0600

senseimori gravatar image

It seems to be not that easy. Akash Kumar Singh tells us at the end of his Blog/Post "Is there nothing other than Plugins" ,that a Sensor is "an entity and not a physical thing". It seems that i have to dig deeper to finde a way to get the data of the sensor to us it for my pioneer.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-04-08 13:12:25 -0600

Seen: 90 times

Last updated: Apr 13 '22