ROS Integration With Catkin_make Error

Report crashes, strange behaviour, or apparent bugs
Post Reply
And1210
Posts: 6
Joined: 22 Jun 2020, 17:46

ROS Integration With Catkin_make Error

Post by And1210 »

I am trying to install the ROS plugin for CoppeliaSim and getting many errors. Here is the results of

Code: Select all

catkin_make --cmake-args -DCMAKE_BUILD_TYPE=Release -DLIBPLUGIN_DIR=$COPPELIASIM_ROOT_DIR/programming/libPlugin

Code: Select all

Scanning dependencies of target simExtROSInterface
[ 91%] Building CXX object sim_ros_interface/CMakeFiles/simExtROSInterface.dir/src/sim_ros_interface.cpp.o
[ 92%] Building CXX object sim_ros_interface/CMakeFiles/simExtROSInterface.dir/src/ros_msg_builtin_io.cpp.o
[ 93%] Building CXX object sim_ros_interface/CMakeFiles/simExtROSInterface.dir/generated/stubs.cpp.o
[ 94%] Building CXX object sim_ros_interface/CMakeFiles/simExtROSInterface.dir/generated/ros_msg_io.cpp.o
[ 95%] Building CXX object sim_ros_interface/CMakeFiles/simExtROSInterface.dir/generated/ros_srv_io.cpp.o
/home/andrew/ROS/husky_ws/src/sim_ros_interface/src/sim_ros_interface.cpp: In member function ‘virtual void Plugin::onStart()’:
/home/andrew/ROS/husky_ws/src/sim_ros_interface/src/sim_ros_interface.cpp:647:9: error: ‘setExtVersion’ was not declared in this scope
         setExtVersion("ROS Interface Plugin");
         ^~~~~~~~~~~~~
/home/andrew/ROS/husky_ws/src/sim_ros_interface/src/sim_ros_interface.cpp:648:9: error: ‘setBuildDate’ was not declared in this scope
         setBuildDate(BUILD_DATE);
         ^~~~~~~~~~~~
/home/andrew/ROS/husky_ws/src/sim_ros_interface/src/sim_ros_interface.cpp:648:9: note: suggested alternative: ‘simBuildMatrix’
         setBuildDate(BUILD_DATE);
         ^~~~~~~~~~~~
         simBuildMatrix
sim_ros_interface/CMakeFiles/simExtROSInterface.dir/build.make:104: recipe for target 'sim_ros_interface/CMakeFiles/simExtROSInterface.dir/src/sim_ros_interface.cpp.o' failed
make[2]: *** [sim_ros_interface/CMakeFiles/simExtROSInterface.dir/src/sim_ros_interface.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:3636: recipe for target 'sim_ros_interface/CMakeFiles/simExtROSInterface.dir/all' failed
make[1]: *** [sim_ros_interface/CMakeFiles/simExtROSInterface.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
I couldn't find any .so files that were compiled to put them into the CoppeliaSim root folder. CoppeliaSim is not loading sim_ros_interface as a plugin. I have updated the libPlugin folder in CoppeliaSim with the latest commit.

Can anyone help?

fferri
Posts: 1216
Joined: 09 Sep 2013, 19:28

Re: ROS Integration With Catkin_make Error

Post by fferri »

And1210 wrote: 23 Jun 2020, 17:56 I have updated the libPlugin folder in CoppeliaSim with the latest commit.
It appears you didn't.

What does git -C $COPPELIASIM_ROOT_DIR/programming/libPlugin show --summary say?

And1210
Posts: 6
Joined: 22 Jun 2020, 17:46

Re: ROS Integration With Catkin_make Error

Post by And1210 »

Thank you for the response. Below is the output of the libPlugin summary:

Code: Select all

@@
commit 4f5e5364a7ee565c21011ea942619126a7e44358 (HEAD -> master, origin/master, origin/HEAD)
Author: Federico Ferri <federico.ferri.it@gmail.com>
Date:   Mon Jun 22 11:42:07 2020 +0200

    set console verbosity to debug
It looks like the most up to date version.

fferri
Posts: 1216
Joined: 09 Sep 2013, 19:28

Re: ROS Integration With Catkin_make Error

Post by fferri »

Well, setExtVersion / setBuildDate methods are from a previous commit (ffbb6e4c of 4 May) which obviously you must have.

There is something else going on on your machine. Try starting from scratch.

And by the way, you don't need to pass the cmake option -DLIBPLUGIN_DIR=... because it looks like you set $COPPELIASIM_ROOT_DIR (however this won't change the result).

And1210
Posts: 6
Joined: 22 Jun 2020, 17:46

Re: ROS Integration With Catkin_make Error

Post by And1210 »

I started from scratch in a fresh workspace. Getting new errors on build now:

Code: Select all

Errors     << sim_ros_interface:make /home/andrew/ROS/cs_ws/logs/sim_ros_interface/build.make.001.log                                                                                                      
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp: In member function ‘void sim::Plugin::setExtVersion(const string&)’:
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp:22:41: error: ‘sim_moduleinfo_extversionstr’ was not declared in this scope
         simSetModuleInfo(name_.c_str(), sim_moduleinfo_extversionstr, s.c_str(), 0);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp: In member function ‘void sim::Plugin::setExtVersion(int)’:
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp:27:41: error: ‘sim_moduleinfo_extversionint’ was not declared in this scope
         simSetModuleInfo(name_.c_str(), sim_moduleinfo_extversionint, 0, i);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp:27:41: note: suggested alternative: ‘sim_drawing_persistent’
         simSetModuleInfo(name_.c_str(), sim_moduleinfo_extversionint, 0, i);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                         sim_drawing_persistent
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp: In member function ‘void sim::Plugin::setBuildDate(const string&)’:
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp:32:41: error: ‘sim_moduleinfo_builddatestr’ was not declared in this scope
         simSetModuleInfo(name_.c_str(), sim_moduleinfo_builddatestr, s.c_str(), 0);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp: In member function ‘void sim::Plugin::setVerbosity(int)’:
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp:37:41: error: ‘sim_moduleinfo_verbosity’ was not declared in this scope
         simSetModuleInfo(name_.c_str(), sim_moduleinfo_verbosity, 0, i);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp: In member function ‘int sim::Plugin::getVerbosity()’:
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp:42:17: error: ‘sim_verbosity_default’ was not declared in this scope
         int v = sim_verbosity_default;
                 ^~~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp:42:17: note: suggested alternative: ‘sim_dynmat_default’
         int v = sim_verbosity_default;
                 ^~~~~~~~~~~~~~~~~~~~~
                 sim_dynmat_default
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp:43:41: error: ‘sim_moduleinfo_verbosity’ was not declared in this scope
         simGetModuleInfo(name_.c_str(), sim_moduleinfo_verbosity, nullptr, &v);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp: In member function ‘virtual void* sim::Plugin::loadSimLibrary()’:
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp:612:15: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
         getcwd(curDirAndFile, sizeof(curDirAndFile));
         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/simExtROSInterface.dir/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp:1:0:
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.h:43:46: error: ‘sim_verbosity_trace’ was not declared in this scope
     FuncTracer(const std::string &f, int l = sim_verbosity_trace);
                                              ^~~~~~~~~~~~~~~~~~~
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp: In function ‘void log(int, const string&)’:
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp:44:5: error: ‘simAddLog’ was not declared in this scope
     simAddLog("ROSInterface", v, msg.c_str());
     ^~~~~~~~~
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp:44:5: note: suggested alternative: ‘simAddGhost’
     simAddLog("ROSInterface", v, msg.c_str());
     ^~~~~~~~~
     simAddGhost
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp: In function ‘simInt simRegisterScriptCallbackFunctionE(const simChar*, const simChar*, simVoid (*)(SScriptCallBack*))’:
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp:102:13: error: ‘sim_verbosity_warnings’ was not declared in this scope
         log(sim_verbosity_warnings, boost::format("warning: replaced function '%s'") % funcNameAtPluginName);
             ^~~~~~~~~~~~~~~~~~~~~~
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp:102:13: note: suggested alternative: ‘sim_msgbox_type_warning’
         log(sim_verbosity_warnings, boost::format("warning: replaced function '%s'") % funcNameAtPluginName);
             ^~~~~~~~~~~~~~~~~~~~~~
             sim_msgbox_type_warning
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp: In function ‘simInt simRegisterScriptVariableE(const simChar*, const simChar*, simInt)’:
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp:114:13: error: ‘sim_verbosity_warnings’ was not declared in this scope
         log(sim_verbosity_warnings, boost::format("warning: replaced variable '%s'") % varName);
             ^~~~~~~~~~~~~~~~~~~~~~
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp:114:13: note: suggested alternative: ‘sim_msgbox_type_warning’
         log(sim_verbosity_warnings, boost::format("warning: replaced variable '%s'") % varName);
             ^~~~~~~~~~~~~~~~~~~~~~
             sim_msgbox_type_warning
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp: In function ‘bool registerScriptStuff()’:
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp:846:13: error: ‘sim_verbosity_errors’ was not declared in this scope
         log(sim_verbosity_errors, ex.what());
             ^~~~~~~~~~~~~~~~~~~~
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.cpp:846:13: note: suggested alternative: ‘simx_error_noerror’
         log(sim_verbosity_errors, ex.what());
             ^~~~~~~~~~~~~~~~~~~~
             simx_error_noerror
In file included from /home/andrew/ROS/cs_ws/src/sim_ros_interface/src/ros_msg_builtin_io.cpp:4:0:
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.h:43:46: error: ‘sim_verbosity_trace’ was not declared in this scope
     FuncTracer(const std::string &f, int l = sim_verbosity_trace);
                                              ^~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/simExtROSInterface.dir/generated/stubs.cpp.o] Error 1
In file included from /home/andrew/ROS/cs_ws/src/sim_ros_interface/include/sim_ros_interface.h:75:0,
                 from /home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/ros_msg_io.h:5,
                 from /home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/ros_srv_io.cpp:1:
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.h:43:46: error: ‘sim_verbosity_trace’ was not declared in this scope
     FuncTracer(const std::string &f, int l = sim_verbosity_trace);
                                              ^~~~~~~~~~~~~~~~~~~
In file included from /home/andrew/ROS/cs_ws/src/sim_ros_interface/include/sim_ros_interface.h:75:0,
                 from /home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/ros_msg_io.h:5,
                 from /home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/ros_msg_io.cpp:1:
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.h:43:46: error: ‘sim_verbosity_trace’ was not declared in this scope
     FuncTracer(const std::string &f, int l = sim_verbosity_trace);
                                              ^~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/simExtROSInterface.dir/src/ros_msg_builtin_io.cpp.o] Error 1
make[2]: *** [CMakeFiles/simExtROSInterface.dir/generated/ros_srv_io.cpp.o] Error 1
In file included from /home/andrew/ROS/cs_ws/src/sim_ros_interface/include/sim_ros_interface.h:75:0,
                 from /home/andrew/ROS/cs_ws/src/sim_ros_interface/src/sim_ros_interface.cpp:1:
/home/andrew/ROS/cs_ws/build/sim_ros_interface/generated/stubs.h:43:46: error: ‘sim_verbosity_trace’ was not declared in this scope
     FuncTracer(const std::string &f, int l = sim_verbosity_trace);
                                              ^~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/simExtROSInterface.dir/generated/ros_msg_io.cpp.o] Error 1
In file included from /home/andrew/ROS/cs_ws/src/sim_ros_interface/src/sim_ros_interface.cpp:2:0:
/home/andrew/ROS/cs_ws/src/sim_ros_interface/src/sim_ros_interface.cpp: In function ‘unsigned char simStart(void*, int)’:
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:147:31: error: ‘sim_verbosity_errors’ was not declared in this scope
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:147:31: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:147:31: note: suggested alternative: ‘simx_error_noerror’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:147:31: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:147:9: error: ‘simAddLog’ was not declared in this scope
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:147:9: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:147:9: note: suggested alternative: ‘simAddGhost’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:147:9: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^~~~~~~~~
/home/andrew/ROS/cs_ws/src/sim_ros_interface/src/sim_ros_interface.cpp: In function ‘void simEnd()’:
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:164:31: error: ‘sim_verbosity_errors’ was not declared in this scope
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:164:31: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:164:31: note: suggested alternative: ‘simx_error_noerror’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:164:31: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:164:9: error: ‘simAddLog’ was not declared in this scope
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:164:9: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:164:9: note: suggested alternative: ‘simAddGhost’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:164:9: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^~~~~~~~~
/home/andrew/ROS/cs_ws/src/sim_ros_interface/src/sim_ros_interface.cpp: In function ‘void* simMessage(int, int*, void*, int*)’:
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:179:31: error: ‘sim_verbosity_errors’ was not declared in this scope
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:179:31: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:179:31: note: suggested alternative: ‘simx_error_noerror’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:179:31: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
                               ^~~~~~~~~~~~~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:179:9: error: ‘simAddLog’ was not declared in this scope
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:179:9: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^~~~~~~~~
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:179:9: note: suggested alternative: ‘simAddGhost’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^
/home/andrew/CoppeliaSim_Edu_V4_0_0_Ubuntu18_04/programming/libPlugin/simPlusPlus/Plugin.h:179:9: note: in definition of macro ‘SIM_PLUGIN’
         simAddLog(pluginName, sim_verbosity_errors, ex.what()); \
         ^~~~~~~~~
make[2]: *** [CMakeFiles/simExtROSInterface.dir/src/sim_ros_interface.cpp.o] Error 1
make[1]: *** [CMakeFiles/simExtROSInterface.dir/all] Error 2
make: *** [all] Error 2
cd /home/andrew/ROS/cs_ws/build/sim_ros_interface; catkin build --get-env sim_ros_interface | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -

fferri
Posts: 1216
Joined: 09 Sep 2013, 19:28

Re: ROS Integration With Catkin_make Error

Post by fferri »

The repositories used by plugins are typically:
make sure to update all of the above.

And1210
Posts: 6
Joined: 22 Jun 2020, 17:46

Re: ROS Integration With Catkin_make Error

Post by And1210 »

I updated all libraries and the build was successful. I copied the created folders to the Coppelia Sim root directory and I still am not able to use ROS with Coppelia Sim. Maybe my directory paths are not setup correctly? What is the correct way to install the ROS plugin? I have been following this tutorial: https://www.coppeliarobotics.com/helpFi ... torial.htm

fferri
Posts: 1216
Joined: 09 Sep 2013, 19:28

Re: ROS Integration With Catkin_make Error

Post by fferri »

And1210 wrote: 06 Jul 2020, 18:52 I have been following this tutorial: https://www.coppeliarobotics.com/helpFi ... torial.htm
Yep, that's the official tutorial. It usually works.

Although the option -DLIBPLUGIN_DIR=$COPPELIASIM_ROOT_DIR/programming/libPlugin is not necessary, but it won't hurt.

Stupid question: after the successful build, did you copy the plugin (libsimExtROSInterface.so) from /home/andrew/ROS/husky_ws/build/sim... to $COPPELIASIM_ROOT_DIR?

And1210
Posts: 6
Joined: 22 Jun 2020, 17:46

Re: ROS Integration With Catkin_make Error

Post by And1210 »

I could not find the generated .so file in my build folder. What is the exact path that it is supposed to be found at? I searched in the build folder but could not find anything.

And1210
Posts: 6
Joined: 22 Jun 2020, 17:46

Re: ROS Integration With Catkin_make Error

Post by And1210 »

I just realised that there is already a compiled .so file for the ROS interface in the linux distribution. I copied that to the root coppeliasim directory and it worked.

Thank you for all your help!

Post Reply