Page 1 of 1

sim_ros_interface build crash

Posted: 09 Nov 2020, 10:44
by oskareeda
Hey!

I have a problem with building (catkin build) ros interface for CoppeliaSim.
Error is following.

Code: Select all

error: ‘exception’ is not a member of ‘sim’
         throw sim::exception("failed creation of ROS ImageTransport subscriber");
                    ^~~~~~~~~
/home/askarbek/catkin_ws/src/sim_ros_interface/src/sim_ros_interface.cpp:374:20: note: suggested alternatives:
In file included from /home/askarbek/catkin_ws/src/sim_ros_interface/include/sim_ros_interface.h:75:0,
                 from /home/askarbek/catkin_ws/src/sim_ros_interface/src/sim_ros_interface.cpp:1:
/home/askarbek/catkin_ws/build/sim_ros_interface/generated/stubs.h:11:8: note:   ‘exception’
 struct exception : public std::exception
        ^~~~~~~~~
In file included from /usr/include/c++/7/exception:38:0,
                 from /usr/include/c++/7/ios:39,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /home/askarbek/catkin_ws/src/sim_ros_interface/include/sim_ros_interface.h:4,
                 from /home/askarbek/catkin_ws/src/sim_ros_interface/src/sim_ros_interface.cpp:1:
/usr/include/c++/7/bits/exception.h:60:9: note:   ‘std::exception’
   class exception
Ubuntu 18.04, ROS Melodic

What is the problem?

Re: sim_ros_interface build crash

Posted: 12 Nov 2020, 14:36
by fferri
You need a recent version of include (replace the one in the programming folder of CoppeliaSim).

Cheers

Re: sim_ros_interface build crash

Posted: 12 Nov 2020, 14:38
by fferri
Also, simROS has a 'melodic' branch, so make sure you checkout that branch.