Ask Your Question
0

How to add a camera to turtlebot?

asked 2017-08-08 12:26:28 -0500

rozoalex gravatar image

I am very new to the world of hardware, ports, pins and stuff. We bought a turtlebot3, I wonder if how can we add a camera on it. Can I just bought a camera for raspberry pi like this one: https://www.amazon.com/Raspberry-Pi-C... and write a node basically listening to image data sending from the port of camera and publish it? Is this the right(easy) way to achieve my goal?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-08-08 12:35:43 -0500

Blupon gravatar image

updated 2017-08-08 12:49:00 -0500

It really depends on what you want to do with your camera.

It's for example very likely that you will want to add your camera to the tf tree of your robot.

Why ? Because to use your camera data alongside other sensors you will need to position each of the sensors in one similar coordinate framework. (example: rtabmap_ros can build a 3D map of an environment using RGBD camera, Odometry and 2D laser data, but in order to combine this data, you have to position each of the sensors in a common framework: this framework is often completed with what you will find in the wiki articles, in the "Required tf Transforms" and "Provided tf Transforms" sections)

How to do that ?

You can for example broadcast a tf, or edit the urdf file of your robot. For the turtlebot 2, here are some information about how to find the urdf files.

On the other hand, if you plan on doing image processing using open CV, you don't need to do that to use your camera. If the camera is not already supported by a ROS Package (understand: not launched with a ROS node and its data seen through a ROS message topic being published), you'll need to connect it yourself with a new package to the ROS network.

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

1 follower

Stats

Asked: 2017-08-08 12:26:28 -0500

Seen: 1,377 times

Last updated: Aug 08 '17