Ask Your Question
0

Combining Angle from AX12 Servo and data from Hokuyo Laser

asked 2011-12-14 08:11:31 -0600

tyler258 gravatar image

Hello,

Currently I am trying to generate a 3D map using the AX12 Servo and Hokuyo Laser. As of now I can control the AX12 Servo using the Dynamixel_Tutorials found here and can start up the Hokuyo Laser using the Hokuyo Laser Drivers (tutorials can be found here). How do I get the servo to integrate the angle into the laser scan data so when it is run through rviz it will create a 3D map.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2011-12-14 08:21:31 -0600

arebgun gravatar image

updated 2011-12-14 09:01:31 -0600

You might want to look at the laser_assembler package that provides nodes that listen to streams of scans and then assemble them into a larger 3D Cartesian coordinate (XYZ) point cloud.

We have pretty much the same setup on our robot - tilting Dynamixel motor with a Hokuyo laser attached to it. I have written a node that interfaces with pr2_laser_snapshotter node to get the cloud each time the laser does a full profile (goes up and down). There's nothing terribly complicated in both of those nodes, one just tells the other when it's at the beginning/end of profile and the other calls out to laser_assembler to get the cloud at that point in time. You can write your own node if you have different requirements.

Look at bottom of this launch file for an example on how to launch these nodes.

edit flag offensive delete link more
1

answered 2011-12-14 08:20:56 -0600

DimitriProsser gravatar image

updated 2011-12-14 08:21:42 -0600

In order to do this, you must set up some controller that will monitor the servo's position and publish a transform from the laser's frame to the base_link frame (or whatever frame you choose). Then, ROS will be able to easily run calculations based on where the laser is at any given time.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2011-12-14 08:11:31 -0600

Seen: 743 times

Last updated: Dec 14 '11