Ask Your Question
1

Fuerte sensor_msgs::Joy Changed?

asked 2012-04-26 13:47:08 -0600

Dereck gravatar image

~/ros/p2os/p2os_teleop/src/p2os_teleop.cc:169:64: error: ‘const struct sensor_msgs::Joy_<std::allocator<void> >’ has no member named ‘get_axes_size’

Am I missing something or what? This program built fine in ROS-E..

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
3

answered 2012-04-26 22:39:38 -0600

AHornung gravatar image

This not only affects sensor_msgs::Joy but all messages. All get_..._size and set_..._size functions were already deprecated and are now removed in favor of the standard vector API. See Fuerte migration.

edit flag offensive delete link more
0

answered 2012-04-26 13:48:23 -0600

Dereck gravatar image

Yes, some member functions are no longer attached to sensor_msgs::Joy in ROS-F.

Because message arrays are std::vector's , you can use use joy_msg->axes.size() instead.

edit flag offensive delete link more
-1

answered 2013-08-12 22:51:10 -0600

I am trying to compile teleop_base package and after changing sensor_msgs, changing axes.size. I still got an error of

error: cannot call constructor ‘boost::thread::thread’ directly [-fpermissive] error: for a function-style cast, remove the redundant ‘::thread’ [-fpermissive]

Any ideas?

edit flag offensive delete link more

Comments

3

This is not an answer to the question above. Please post a question of your own!

AHornung gravatar imageAHornung ( 2013-08-12 22:58:12 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-04-26 13:47:08 -0600

Seen: 431 times

Last updated: Aug 12 '13