Ask Your Question
0

Getting Raw Data from Turtlebot Simulator

asked 2013-09-15 18:32:13 -0600

Alkaros gravatar image

updated 2013-09-15 18:48:46 -0600

Currently running the newest version of turtlebot_simultor and everything is running very well on hydro.

I'm working on a project where I'm trying to integrate POMDP with the turtlebot. I'm trying to get the simmulation working with POMDP first before moving to the actual turtlebot while I'm still testing the Policy and Model.

How can I get raw data from the kinect sensor in the simulation. I've seen the point cloud map it can create in rviz which is useful for one part of the project but I currently need a way to extract a depth value for following a target at a set distance. I'd like to write a small script that just listens to the data being output from the sensor node and passes the important data into the policy and then send the move command somehow to the turtlebot.

Eventually this will be used for a tracking and facial recognition project. The aim is to see how the turtlebot will act while following a target with uncertainty. Depth will be important for following from a certain distance (Which is the first goal) and then after that will be the bot moving to see a face that will be run through a facial recognition program. This last goal will require an image output to be scanned.

Does anyone know of a way to achieve something like this? Some form of automated control?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-09-15 22:49:27 -0600

bit-pirate gravatar image

updated 2013-09-16 13:00:22 -0600

Welcome to ROS Answers, Alkaros!

After reading through your question I believe the point cloud is actually what you are looking for. There is already an application in the turtlebot_follower package, which does something similar to what you are trying to achieve. It uses the point cloud generated by the 3D sensor - RViz is not creating the pointcloud, but only visualising it - to track peoples legs in order to follow them. For this the depth information of the point cloud is used.

However, if for other reasons you like to use depth information only, then you should look at the /camera/depth/image_raw ROS topic. Through it you can receive the depth data of the 3D sensor as an image stream.

Hope this helps!

edit flag offensive delete link more

Comments

Should the depth image topic show upin gztopic list?

Alkaros gravatar imageAlkaros ( 2013-09-16 00:03:55 -0600 )edit
1

It you want it to work on the real robot you should use rostopic list not gztopic list.

tfoote gravatar imagetfoote ( 2013-09-16 07:27:38 -0600 )edit
1

The mentioned depth image topic is available through ROS.

bit-pirate gravatar imagebit-pirate ( 2013-09-16 13:01:07 -0600 )edit

Excellent, what is the best way to send movement commands. Is it just simply to stick to teleop and have the script that is processing the policy send teleop commands? Sorry if this is a simple question.

Alkaros gravatar imageAlkaros ( 2013-09-16 16:13:33 -0600 )edit
1

Just let your script send the velocity commands directly. You can get inspiration on how to do that from the [kobuki_keyop](http://wiki.ros.org/kobuki_keyop) and [turtlebot_teleop](http://wiki.ros.org/turtlebot_teleop) packages. And please remember to mark you question as solved, if you're happy.

bit-pirate gravatar imagebit-pirate ( 2013-09-16 16:54:39 -0600 )edit

Should "rosrun image_view image_view image:=/camera/depth/image_raw" Work? It works with the RGB image, the depth image doesn't show anything using that command. Thanks.

Alkaros gravatar imageAlkaros ( 2013-09-16 17:02:24 -0600 )edit

It should. I can see the depth image.

bit-pirate gravatar imagebit-pirate ( 2013-09-16 18:07:18 -0600 )edit

Any clues to why it wouldn't? It just opens up as a pain gray Window. Nothing that I can interpret as actual data in it.

Alkaros gravatar imageAlkaros ( 2013-09-16 18:37:19 -0600 )edit

That's hard to tell. I suggest to open a new question for this specific problem. Please describe how to reproduce your problem in detail. Don't forget to add information about the software versions you are using (ROS distro, deb or source install, etc.).

bit-pirate gravatar imagebit-pirate ( 2013-09-16 18:51:41 -0600 )edit

http://answers.ros.org/question/80946/turtlebot-depth-image-not-displaying-with-image_view-with-gazebo/

Alkaros gravatar imageAlkaros ( 2013-09-18 18:18:31 -0600 )edit

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: 2013-09-15 18:32:13 -0600

Seen: 1,025 times

Last updated: Sep 16 '13