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

Fuerte sensor_msgs::Joy Changed?

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

Dereck gravatar image

~/ros/p2os/p2os_teleop/src/ 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

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

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

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



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

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

Question Tools


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

Seen: 676 times

Last updated: Aug 12 '13