Ask Your Question
0

[TurtleBot] Getting Colored Images from navigation mode

asked 2013-11-14 04:45:14 -0500

thesir gravatar image

updated 2013-11-24 21:16:32 -0500

bit-pirate gravatar image

Hello guys,

This is my first post here on ros answers, and I feel very honored for being a part of this community. I've recently started working with TurtleBot on a project here at my University, which has a goal to gather a RGB-D dataset in order to build semantic maps. In a nutshell, I need to get the TurtleBot moving around the halls of a building, saving RGB and depth information while doing it. I have completed all turtlebot and rosbag tutorials, however a situation came up:

  • When the turtlebot is navigating autonomously on a known map, the topic /camera/rgb/image_color (which provides the colored image), is gone! I'm only left with the /camera/rgb/image_raw, which does not suit my needs (not because it's not colored, but because it has strange "dots" on it). I have tried to use the 3dsensors launcher (which makes the image_color topic show up) while navigating, but apparently launching it causes the navigation mode to freeze.

So, my question is: is there any way to record colored images to a bag while the TurtleBot is navigating autonomously on a known map? If there isn't, do I have good alternatives in order to achieve my goal?

Thanks in advance,

Marlon Marques

edit retag flag offensive close merge delete

Comments

I followed the answer to copy code from amcl_demo.launch and set false to true, but when I roslaunch my new launch file, it just gives me warnning, "waiting transform from......". Have you met this situation?

Henschel.X gravatar imageHenschel.X ( 2016-04-06 05:53:17 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-11-24 03:12:56 -0500

Daniel Stonier gravatar image

First things first, I'm guessing you are launching amcl_demo.launch for the navigation. You'll note that it too calls 3dsensors.launch, so if you try and launch 3dsensors.launch again while navigating, this is probably the reason for it freezing - you are trying to start an already started set of 3d sensor nodes which is a use case that we don't have development time to support ;)

You'll also note inside amcl_demo.launch, there are some args that get passed to 3dsensor.launch. I think the one you want is to set rgb_processing to true.

Solution might be to write your own custom launcher. Model it off that amcl_demo.launch and set the rgb_processing to true.

edit flag offensive delete link more

Comments

Muchas Gracias, amigo! I should have looked inside the launch file before I came in here, haha. I also set the argument depth_registration to true, because I needed it as well. Now everything's working just fine! Thank you so much!

thesir gravatar imagethesir ( 2013-11-24 05:07:53 -0500 )edit

I followed the answer to copy code from amcl_demo.launch and set false to true, but when I roslaunch my new launch file, it just gives me warnning, "waiting transform from......". Have you met this situation?

Henschel.X gravatar imageHenschel.X ( 2016-04-06 06:01:07 -0500 )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

1 follower

Stats

Asked: 2013-11-14 04:45:14 -0500

Seen: 258 times

Last updated: Nov 24 '13