ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

how to write c++ codes in ros, for analysing kinect depth datas?

asked 2016-05-12 13:37:17 -0500

dinesh gravatar image

im trying to write 3d computer vision in ros in c++, but it looks like c++ in ros is little different, so what is the important neceasary lines to add in c++ code for this, or what is basic format of ros c++, for kinect?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-05-12 16:36:25 -0500

curranw gravatar image

updated 2016-05-12 17:02:40 -0500

It's conceptually the same as in Python, just syntactically different. Include your message headers and parse the data using a c++ subscriber.

edit flag offensive delete link more

Comments

1

The answer from @curranw is correct... a PointCloud2 message is just like any other message. Subscribe to the data and work with it. However I will point out that it seems a huge majority of people working with C++ and point clouds tend to use PCL and pcl_ros

jarvisschultz gravatar image jarvisschultz  ( 2016-05-12 16:46:26 -0500 )edit

Question Tools

Stats

Asked: 2016-05-12 13:37:17 -0500

Seen: 360 times

Last updated: May 12 '16