Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple RGBD cameras input sources #37

Closed
kingfolk opened this issue Oct 19, 2015 · 5 comments
Closed

Multiple RGBD cameras input sources #37

kingfolk opened this issue Oct 19, 2015 · 5 comments

Comments

@kingfolk
Copy link

Hi Dear rtabmap,

The question is not technically a github issue. Sorry. But i don't know where to ask.
The practice we try to do is use two RGBD cameras. The additional camera's angle is fixed down to ground so as to make robot aware of the the environment of ground.
I looked into the SensorData.h https://github.com/introlab/rtabmap/blob/0.10.5/corelib/include/rtabmap/core/SensorData.h#L86
There is a constructor for multi rgbd cameras but no usage link to it. I am wondering if there is an example of using multi rgbd cameras as input sources.

many thanks

@matlabbe
Copy link
Member

You can ask this type of question here, no problems!

If you are using rtabmap_ros, there is a small example here: https://github.com/introlab/rtabmap_ros/blob/master/launch/demo/demo_two_kinects.launch

For the constructor of SensorData you are referring:

  • rgb: side-by-side RGB images (e.g., it would be 1280x480 for two images of 640x480)
  • depth: side-by-side depth images (e.g., it would be 1280x480 for two images of 640x480)
  • cameraModels: The CameraModel for each camera. Make sure that localTransform of CameraModel represents exactly the transform from a fixed frame on the robot (e.g., /base_link on ROS). The localTransform should also contains the optical rotation R to put the images in x->forward, y->left, z->up referential. Example: localTransform = T*R, where T is the transformation of the camera from the fixed frame on the robot (e.g., your second camera may have pitch=PI/2 and some translation components) and R the optical rotation (roll=-PI/2, pitch=0, yaw=-PI/2).

cheers

@kingfolk
Copy link
Author

Super!
Thank you!

@kingfolk
Copy link
Author

kingfolk commented Nov 9, 2015

Hi Mathieu,

i am wondering how you calibrate two rgbd cameras and get tfs?

thanks!

@matlabbe
Copy link
Member

matlabbe commented Nov 9, 2015

The TFs should be set manually. An automated calibration while mapping with both cameras is not yet implemented.

cheers

@jacksonkr
Copy link

jacksonkr commented Oct 28, 2016

@kingfolk

FYI there is the official rtabmap forum here: http://official-rtab-map-forum.206.s1.nabble.com/

It's where I ask all my non-issue related questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants