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

Revision history [back]

Hello

I am new in ROS.

I am using MATLAB with ROS Hydro, I couldn't extract the cloud of points, in the "Trutlebotcommunicator" classdef I am using when I am whriting

    h.CloudPointsSub = h.Node.addSubscriber('/camera/depth/points', 'sensor_msgs/PointCloud2',1);


    h.CloudPointsSub.setOnNewMessageListeners({@h.pointsCallback});

the code stck, and I should restart matlab.

Pleas could you explain to me How did read the PointCloud2 data from sensor_msgs/PointCloud2 message.