Ask Your Question
0

Trouble processing tf2 package

asked 2020-02-25 19:47:24 -0500

AHJL001 gravatar image

I am trying to use catkin_make_isolated to build a workspace for my turtlebot3. However, this package will always fail to compile when it is processing the tf2 package. The error msgs are showed as follows:

/home/pi/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp: In member function ‘bool tf2::BufferCore::warnFrameId(const char*, const string&) const’:
/home/pi/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:126:34: error: ‘logWarn’ was not declared in this scope
     logWarn("%s",ss.str().c_str());
                                  ^
make[2]: *** [CMakeFiles/tf2.dir/build.make:76: CMakeFiles/tf2.dir/src/buffer_core.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:974: CMakeFiles/tf2.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
<== Failed to process package 'tf2': 
  Command '['/home/pi/catkin_ws/devel_isolated/tf2_msgs/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/pi/catkin_ws/build_isolated/tf2 && /home/pi/catkin_ws/devel_isolated/tf2_msgs/env.sh make -j4 -l4

Please advise. Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-02-25 20:30:00 -0500

AHJL001 gravatar image

updated 2020-03-02 21:27:58 -0500

This can be fixed by following the instructions from this website.

https://eleccelerator.com/wiki/index....

Specifically, add this to the preprocessor of the buffer_core.cpp.

#ifndef logError // added by frank26080115
#define logError CONSOLE_BRIDGE_logError
#endif

#ifndef logWarn // added by frank26080115
#define logWarn CONSOLE_BRIDGE_logWarn
#endif
edit flag offensive delete link more

Comments

Please do not post link-only answers.

If (or more precisely: when) this site or page disappears, your answer will essentially be useless.

Quote the relevant parts from the page you link here, to make your answer stand-alone.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-26 02:02:54 -0500 )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

1 follower

Stats

Asked: 2020-02-25 19:47:24 -0500

Seen: 67 times

Last updated: Mar 02