Ask Your Question

convert from int32 to int

asked 2016-01-20 14:55:37 -0500 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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


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

Seen: 2,946 times

Last updated: Jan 21 '16