Pepper: matching depth (Asus Xtion) to color (Front Camera)

834 views
Skip to first unread message

Giovanni Claudio

unread,
Aug 17, 2016, 8:10:14 AM8/17/16
to ROS Sig Aldebaran
Hi,

If I am not wrong, Pepper is equipped with the Asus Xtion PRO, that has only the depth. I was wondering how to register the depth with the color information coming from the front camera. 

Right now naoqi_ros publishes:

/pepper_robot/camera/depth/camera_info 
/pepper_robot/camera/depth/image_raw

Is it possible in naoqi_ros to get a depth registered to the front camera frame?

It seems not for now. If the only way is to code it, I guess I would need to calibrate the IR camera, 
the RGB camera and to compute the transformation between the two.

Any suggestion?

Thanks!

Giovanni




Natalia Lyubova

unread,
Aug 18, 2016, 7:07:58 AM8/18/16
to ROS Sig Aldebaran
Hello Giovanni,

it is possible to register depth image and align it with RGB to get a colored pointcloud, like that:

* Install an image processing tool (based on OpenCV) http://wiki.ros.org/depth_image_proc
sudo apt-get install ros-indigo-depth-image-proc

* launch naoqi_driver (it is prefered than pepper_bringup)
roslaunch naoqi_driver naoqi_driver.launch nao_ip:=<the robot ip> network_interface:=<eth0|wlan0>

* launch depth_image_proc to align depth and RGB
rosrun nodelet nodelet manager __name:=nodelet_manager

rosrun nodelet nodelet load depth_image_proc/register nodelet_manager rgb/camera_info:=/naoqi_
driver_node/camera/front/camera_info depth/camera_info:=/naoqi_driver_node/camera/depth/camera_info depth/image_rect:=/naoqi_driver_node/camera/depth/image_raw depth_registered/image_rect:=/naoqi_driver_node/camera/depth_registered/image_rect

rosrun nodelet nodelet load depth_image_proc/point_cloud_
xyzrgb nodelet_manager rgb/camera_info:=/naoqi_driver_node/camera/front/camera_info rgb/image_rect_color:=/naoqi_driver_node/camera/front/image_raw depth_registered/image_rect:=/naoqi_driver_node/camera/depth_registered/image_rect depth_registered/points:=/naoqi_driver_node/camera/depth_registered/points


* Finally, you see a colored pointCloud published to /naoqi_driver_node/camera/depth_registered/points


Best regards,
Natalia


Giovanni Claudio

unread,
Aug 18, 2016, 10:57:48 AM8/18/16
to ros-sig-...@googlegroups.com
Thanks Natalia! I missed that package. Very helpful.

I will try it soon.

Giovanni

This email and any attachment thereto are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient, please be advised that disclosing, copying, distributing or taking any action in reliance on the contents of this email is strictly prohibited. In such case, please immediately advise the sender, and delete all copies and attachment from your system.
This email shall not be construed and is not tantamount to an offer, an acceptance of offer, or an agreement by SoftBank Robotics Europe on any discussion or contractual document whatsoever. No employee or agent is authorized to represent or bind SoftBank Robotics Europe to third parties by email, or act on behalf of SoftBank Robotics Europe by email, without express written confirmation by SoftBank Robotics Europe’ duly authorized representatives.


Ce message électronique et éventuelles pièces jointes sont confidentiels, et exclusivement destinés à la personne ou l'entité à qui ils sont adressés.
Si vous n'êtes pas le destinataire visé, vous êtes prié de ne pas divulguer, copier, distribuer ou prendre toute décision sur la foi de ce message électronique. Merci d'en aviser immédiatement l'expéditeur et de supprimer toutes les copies et éventuelles pièces jointes de votre système.
Ce message électronique n'équivaut pas à une offre, à une acceptation d’offre, ou à un accord de SoftBank Robotics Europe sur toute discussion ou document contractuel quel qu’il soit, et ne peut être interprété comme tel. Aucun employé ou agent de SoftBank Robotics Europe n'est autorisé à représenter ou à engager la société par email, ou à agir au nom et pour le compte de la société par email, sans qu’une confirmation écrite soit donnée par le représentant légal de SoftBank Robotics Europe ou par toute autre personne ayant reçu délégation de pouvoir appropriée.

--
You received this message because you are subscribed to the Google Groups "ROS Sig Aldebaran" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-aldebaran+unsubscribe@googlegroups.com.
To post to this group, send email to ros-sig-aldebaran@googlegroups.com.
Visit this group at https://groups.google.com/group/ros-sig-aldebaran.
To view this discussion on the web visit https://groups.google.com/d/msgid/ros-sig-aldebaran/2b90102e-cb44-4a88-8db9-541aaec9fde2%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Kei Okada

unread,
Aug 18, 2016, 8:17:22 PM8/18/16
to ros-sig-...@googlegroups.com
FYI: related topic has been discussed in github issue page -> https://github.com/ros-naoqi/naoqi_driver/pull/71

--
 Kei Okada


Reply all
Reply to author
Forward
0 new messages