Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If the int32 come from a std::msgs you can access the value with .data

int var = yourMsg.data

here is the documentation : http://docs.ros.org/api/std_msgs/html/msg/Int32.html