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

Revision history [back]

click to hide/show revision 1
initial version

It looks like you aren't publishing and receiving the same message types; the message type that you're subscribing to and the message type that is being published must match.

For your example, it looks like you should be subscribing to the leap_motion_sensor/leapros message type (leap_motion_sensor::leapros in C++).

From there, you should be able to access the hand_direction data with msg->hand_direction