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

CONSOLE_BRIDGE_LogError Was not declared in this scope

asked 2018-04-26 12:56:24 -0500

jbeck28 gravatar image

Trying to update MoveIt, because it was giving me an error regarding not being able to find ikfast.h when generating an ikfast plugin... and now this happens. I cloned the indigo-devel branch of moveit from github.

       [ 64%] Building CXX object moveit/moveit_core/background_processing/CMakeFiles/moveit_background_processing.dir/src/background_processing.cpp.o
Generating moc_passive_joints_widget.cpp
Generating moc_planning_groups_widget.cpp
/home/rnd/catkin_ws/src/moveit/moveit_core/exceptions/src/exceptions.cpp: In constructor ‘moveit::ConstructException::ConstructException(const string&)’:
/home/rnd/catkin_ws/src/moveit/moveit_core/exceptions/src/exceptions.cpp:42:105: error: ‘CONSOLE_BRIDGE_logError’ was not declared in this scope
   CONSOLE_BRIDGE_logError("Error during construction of object: %s\nException thrown.", what_arg.c_str());
                                                                                                         ^
/home/rnd/catkin_ws/src/moveit/moveit_core/exceptions/src/exceptions.cpp: In constructor ‘moveit::Exception::Exception(const string&)’:
/home/rnd/catkin_ws/src/moveit/moveit_core/exceptions/src/exceptions.cpp:47:68: error: ‘CONSOLE_BRIDGE_logError’ was not declared in this scope
   CONSOLE_BRIDGE_logError("%s\nException thrown.", what_arg.c_str());
                                                                    ^
make[2]: *** [moveit/moveit_core/exceptions/CMakeFiles/moveit_exceptions.dir/src/exceptions.cpp.o] Error 1
make[1]: *** [moveit/moveit_core/exceptions/CMakeFiles/moveit_exceptions.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Generating moc_robot_poses_widget.cpp
Generating moc_setup_assistant_widget.cpp
Generating moc_setup_screen_widget.cpp
Generating moc_start_screen_widget.cpp
Generating moc_virtual_joints_widget.cpp
[ 64%] Built target moveit_setup_assistant_widgets_automoc
/home/rnd/catkin_ws/src/moveit/moveit_core/background_processing/src/background_processing.cpp: In member function ‘void moveit::tools::BackgroundProcessing::processingThread()’:
/home/rnd/catkin_ws/src/moveit/moveit_core/background_processing/src/background_processing.cpp:76:95: error: ‘CONSOLE_BRIDGE_logDebug’ was not declared in this scope
         CONSOLE_BRIDGE_logDebug("moveit.background: Begin executing '%s'", action_name.c_str());
                                                                                               ^
/home/rnd/catkin_ws/src/moveit/moveit_core/background_processing/src/background_processing.cpp:82:116: error: ‘CONSOLE_BRIDGE_logError’ was not declared in this scope
         CONSOLE_BRIDGE_logError("Exception caught while processing action '%s': %s", action_name.c_str(), ex.what());
                                                                                                                    ^
/home/rnd/catkin_ws/src/moveit/moveit_core/profiler/src/profiler.cpp: In member function ‘void moveit::tools::Profiler::console()’:
/home/rnd/catkin_ws/src/moveit/moveit_core/profiler/src/profiler.cpp:175:44: error: ‘CONSOLE_BRIDGE_logInform’ was not declared in this scope
   CONSOLE_BRIDGE_logInform(ss.str().c_str());
                                            ^
make[2]: *** [moveit/moveit_core/background_processing/CMakeFiles/moveit_background_processing.dir/src/background_processing.cpp.o] Error 1
make[1]: *** [moveit/moveit_core/background_processing/CMakeFiles/moveit_background_processing.dir/all] Error 2
make[2]: *** [moveit/moveit_core/profiler/CMakeFiles/moveit_profiler.dir/src/profiler.cpp.o] Error 1
make[1]: *** [moveit/moveit_core/profiler/CMakeFiles/moveit_profiler.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

Any advice would be much appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-04-27 13:57:24 -0500

tfoote gravatar image

You need to make sure that you have the appropriate version of console_bridge installed. Those macros were added in 0.3 of console bridge: https://github.com/ros/console_bridge... Earlier versions did not have that API available.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-04-26 12:56:24 -0500

Seen: 872 times

Last updated: Apr 27 '18