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

'Error' message: '‘reverse_lock’ is not a member of ‘boost’'

asked 2018-03-19 11:12:32 -0500

dinesh gravatar image

updated 2018-03-20 00:03:37 -0500

jayess gravatar image

file: file:///opt/ros/kinetic/include/actionlib/server/action_server_base.h

severity: 'Error'
message: '‘reverse_lock’ is not a member of ‘boost’'
at: '256,5'
source: ''

file: 'file:///opt/ros/kinetic/include/actionlib/server/action_server_base.h'
severity: 'Error'
message: 'expected primary-expression before ‘>’ token'
at: '256,60'
source: ''
file: 'file:///opt/ros/kinetic/include/actionlib/server/action_server_base.h'
severity: 'Error'
message: '‘unlocker’ was not declared in this scope'
at: '256,70'
source: ''

above is the error when i try to build a package. This is the line where error is occuring:

boost::reverse_lock<boost::recursive_mutex::scoped_lock> unlocker(lock);

as i checked my boost version, i've installed boost 1.58.0. Is this ok if i edit the action_server_bash.h file? will not it affect latter since this hearder file is default file of actionlib package for ros kinetic?

edit retag flag offensive close merge delete

Comments

Editing that file is not correct; that lock is probably there for a reason, and removing it is likely to cause bugs.

Your error messages look unusual. Which operating system and compiler are you using?

It would also be useful to see the code or a small sample program that demonstrates this error.

ahendrix gravatar image ahendrix  ( 2018-03-20 00:14:49 -0500 )edit

i am using ubuntu 16.06, kernel version 4.13.0-37 generic, ros kinetic. well i was trying to use rtt_actionlib_example . But it seems like this package has not been maintained for over3 years.

dinesh gravatar image dinesh  ( 2018-03-20 08:06:43 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2018-03-20 12:32:26 -0500

ahendrix gravatar image

This is a bug in actionlib, not in the tutorial you're following.

It looks like this was fixed in https://github.com/ros/actionlib/pull/95 and released, so the fix will likely go out with the next sync of kinetic.

Sync announcements are posted in the general category on ROS Discourse: https://discourse.ros.org/c/general ; keep an eye on that list for the announcement of the next sync.

edit flag offensive delete link more

Comments

yes. after i cloned the new repository of actionlib package and build it removing the default one this error has gone. tk

dinesh gravatar image dinesh  ( 2018-03-21 04:15:42 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-03-19 11:12:32 -0500

Seen: 215 times

Last updated: Mar 20 '18