OSX failure to use console_bridge in any catkin package.

asked 2018-03-31 11:22:15 -0500

Akash Purandare gravatar image

updated 2018-03-31 12:09:26 -0500

gvdhoorn gravatar image

When I am trying to build the package lms1xx, it is found that the following error occurs:

Scanning dependencies of target LMS1xx
[ 25%] Building CXX object CMakeFiles/LMS1xx.dir/src/LMS1xx.cpp.o
In file included from /Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:36:
In file included from /Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/include/LMS1xx/LMS1xx.h:27:
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/include/LMS1xx/lms_buffer.h:50:7: error:
      use of undeclared identifier 'logDebug'
      logDebug("Read %d bytes from fd, total length is %d.", ret, total_...
      ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/include/LMS1xx/lms_buffer.h:55:7: error:
      use of undeclared identifier 'logWarn'
      logWarn("Buffer read() returned error.");
      ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/include/LMS1xx/lms_buffer.h:64:7: error:
      use of undeclared identifier 'logDebug'
      logDebug("Empty buffer, nothing to return.");
      ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/include/LMS1xx/lms_buffer.h:75:7: error:
      use of undeclared identifier 'logWarn'
      logWarn("No STX found, dropping %d bytes from buffer.", total_length_);
      ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/include/LMS1xx/lms_buffer.h:81:7: error:
      use of undeclared identifier 'logWarn'
      logWarn("Shifting buffer, dropping %d bytes, %d bytes remain.",
      ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/include/LMS1xx/lms_buffer.h:91:7: error:
      use of undeclared identifier 'logDebug'
      logDebug("No ETX found, nothing to return.");
      ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:51:5: error: use
      of undeclared identifier 'logDebug'
    logDebug("Creating non-blocking socket.");
    ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:60:7: error: use
      of undeclared identifier 'logDebug'
      logDebug("Connecting socket to laser.");
      ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:66:9: error: use
      of undeclared identifier 'logDebug'
        logDebug("Connected succeeded.");
        ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:95:5: error: use
      of undeclared identifier 'logWarn'
    logWarn("invalid packet recieved");
    ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:97:3: error: use
      of undeclared identifier 'logDebug'
  logDebug("RX: %s", buf);
  ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:109:5: error: use
      of undeclared identifier 'logWarn'
    logWarn("invalid packet recieved");
    ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:111:3: error: use
      of undeclared identifier 'logDebug'
  logDebug("RX: %s", buf);
  ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:123:5: error: use
      of undeclared identifier 'logWarn'
    logWarn("invalid packet recieved");
    ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:125:3: error: use
      of undeclared identifier 'logDebug'
  logDebug("RX: %s", buf);
  ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:159:5: error: use
      of undeclared identifier 'logWarn'
    logWarn("invalid packet recieved");
    ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:161:3: error: use
      of undeclared identifier 'logDebug'
  logDebug("RX: %s", buf);
  ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:174:5: error: use
      of undeclared identifier 'logWarn'
    logWarn("invalid packet recieved");
    ^
/Users/akashp1997/ros/ros_catkin_ws/src/lms1xx/src/LMS1xx.cpp:176:3: error: use
      of undeclared identifier 'logDebug'
  logDebug("RX: %s", buf);
  ^
fatal error: too many errors emitted, stopping now ...
(more)
edit retag flag offensive close merge delete

Comments

define logError CONSOLE_BRIDGE_logError

define logWarn CONSOLE_BRIDGE_logWarn

define logInform CONSOLE_BRIDGE_logInform

define logDebug CONSOLE_BRIDGE_logDebug

touchmii gravatar image touchmii  ( 2020-06-15 22:39:13 -0500 )edit