catkin_make error in melodic [closed]

asked 2020-11-16 19:13:27 -0500

siddharthcb gravatar image

updated 2020-11-17 01:11:06 -0500

mgruhler gravatar image

hi, i was working on HECTOR-SLAM. i am unable to figure out what this error is about but it was working completely fine in my system just before when i uninstalled ros and reinstalled it and catkin_make gets stuck at 98% giving this error:

[

 98%] Building CXX object navigation/move_base/CMakeFiles/move_base.dir/src/move_base.cpp.o

In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
                 from /home/catkin_ws/src/navigation/move_base/include/move_base/move_base.h:43,
                 from /home/catkin_ws/src/navigation/move_base/src/move_base.cpp:38:

/home/catkin_ws/src/navigation/move_base/src/move_base.cpp: In member function ‘void move_base::MoveBase::executeCb(const MoveBaseGoalConstPtr&)’:

/opt/ros/melodic/include/ros/console.h:348:176: error: no matching function for call to ‘print(NULL, void*&, ros::console::Level&, const char [66], int, const char [65], ros::Duration)’

     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro 

‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~

/opt/ros/melodic/include/rosconsole/macros_generated.h:110:23: note: in expansion of macro ‘ROS_LOG’
 #define ROS_INFO(...) ROS_LOG(::ros::console::levels::Info, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                       ^~~~~~~

/home/catkin_ws/src/navigation/move_base/src/move_base.cpp:779:7: note: in expansion of macro ‘ROS_INFO’
       ROS_INFO(r.cycleTime());
       ^

/opt/ros/melodic/include/ros/console.h:158:22: note: candidate: void ros::console::print(ros::console::FilterBase*, void*, ros::console::Level, const char*, int, const char*, const char*, ...)
 ROSCONSOLE_DECL void print(FilterBase* filter, void* logger, Level level,
                      ^~~~~

/opt/ros/melodic/include/ros/console.h:158:22: note:   no known conversion for argument 7 from ‘ros::Duration’ to ‘const char*’

/opt/ros/melodic/include/ros/console.h:162:22: note: candidate: void ros::console::print(ros::console::FilterBase*, void*, ros::console::Level, const stringstream&, const char*, int, const char*)

 ROSCONSOLE_DECL void print(FilterBase* filter, void* logger, Level level,
                      ^~~~~

/opt/ros/melodic/include/ros/console.h:162:22: note:   no known conversion for argument 4 from ‘const char [66]’ to ‘const stringstream& {aka const std::__cxx11::basic_stringstream<char>&}’

navigation/move_base/CMakeFiles/move_base.dir/build.make:81: recipe for target 'navigation/move_base/CMakeFiles/move_base.dir/src/move_base.cpp.o' failed

make[2]: *** [navigation/move_base/CMakeFiles/move_base.dir/src/move_base.cpp.o] Error 1

CMakeFiles/Makefile2:18021: recipe for target 'navigation/move_base/CMakeFiles/move_base.dir/all' failed

make[1]: *** [navigation/move_base/CMakeFiles/move_base.dir/all] Error 2

Makefile:159: recipe for target 'all' failed

make: *** [all] Error 2

Invoking "make -j4 -l4" failed

the problem is with respect to move_base.cpp in my directory and console.h in ros.

i am using INTEL NUC for this and i also tried cloning these directories to Jetson Xavier installed with ros-melodic but i am facing same problem.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by mgruhler
close date 2020-11-27 03:39:42.593864

Comments

1

@Vignesh@siddharthcb please edit the question with the relevant details:

  • which architecture are you using? You mention intel NUC and Jetson? Which OS?
  • which versions of the packages/repos are in your workspace? (Tag, Commit SHA)
  • if possible, link to the relevant repo/source code that we can try to reproduce

we need this information to be able to support. move_base is a widely used package, which suggest that it is rather an issue with your specific setup than in move_base. Thanks.

mgruhler gravatar image mgruhler  ( 2020-11-17 01:22:12 -0500 )edit

so there was a problem while catkin_make in both nuc and jetson. i solved it. thanks for your response.

siddharthcb gravatar image siddharthcb  ( 2020-11-27 03:15:16 -0500 )edit