sim_ros_interface build crash

Report crashes, strange behaviour, or apparent bugs
Post Reply
oskareeda
Posts: 1
Joined: 06 Nov 2020, 10:40

sim_ros_interface build crash

Post 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?

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

Re: sim_ros_interface build crash

Post by fferri »

You need a recent version of include (replace the one in the programming folder of CoppeliaSim).

Cheers

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

Re: sim_ros_interface build crash

Post by fferri »

Also, simROS has a 'melodic' branch, so make sure you checkout that branch.

Post Reply