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

convert from int32 to int

asked 2016-01-20 14:55:37 -0600 gravatar image

How to compare int32 with int or convert int32 to int?

Looks like No working this way: Int = (int) Int32;

edit retag flag offensive close merge delete



This forum is primarily for questions about ROS (Robot Operating System), and your question does not appear to be about ROS. You will probably get a better answer by asking on a general programming site like Stack Overflow.

ahendrix gravatar image ahendrix  ( 2016-01-20 17:01:29 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-21 02:03:48 -0600

F.Brosseau gravatar image

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

int var =

here is the documentation :

edit flag offensive delete link more

Question Tools


Asked: 2016-01-20 14:55:37 -0600

Seen: 3,858 times

Last updated: Jan 21 '16