Ros Indigo Crash

Report crashes, strange behaviour, or apparent bugs
Post Reply
sneaker
Posts: 12
Joined: 11 Dec 2013, 22:21

Ros Indigo Crash

Post by sneaker »

Hi,

in my code i use

Code: Select all

topicName=simExtROS_enablePublisher('/joint_states',1,simros_strmcmd_get_joint_state,sim_handle_all,0,'')
to publish my joint states

That works fine at first, but as soon as I try to subscribe to /joint_states (for example with rostopic echo /joint_states) V-Rep Crashes with: "Segmentation fault (core dumped)"

The Ros-Plugin is loaded successfully at startup.

Regards

coppelia
Site Admin
Posts: 10558
Joined: 14 Dec 2012, 00:25

Re: Ros Indigo Crash

Post by coppelia »

Hello,

we have tried your example on ROS Fuerte and ROS Hydro, without problem. I guess it is specifically linked to ROS Indigo.. maybe you could try to recompile the ROS plugin?

Cheers

sneaker
Posts: 12
Joined: 11 Dec 2013, 22:21

Re: Ros Indigo Crash

Post by sneaker »

Recompiling the plugin helped, thanks a lot!!

Just a little notice:
When I first tried to compile the plugin it gave me an error, that the dependency to opencv2 is unresolved. As I found out opencv is no longer released as a Ros Package in Indigo.
http://wiki.ros.org/opencv2

So I just deleted the opencv dependency entry in the manifest.xml and then it compiled. (Same for the vrep_common package)

Regards

andresoliveira
Posts: 2
Joined: 07 Jun 2014, 15:51

Re: Ros Indigo Crash

Post by andresoliveira »

I have the same problem. I use the V-Rep 3.1.2 64 bits with Ubuntu 14.04 64 bits and Ros Indigo. The publishers work well but my subscribers close the V-Rep with message "Segmentation fault (core dumped)". I tried to recompile the vrep plugin and vrep_common but the error continues. The same scene works correctly in Hydro and Fuerte. Any idea to solve this issue?

The subscriber code (in lua) is specified below.

Code: Select all

simExtROS_enableSubscriber('motor',1,simros_strcmd_set_joint_target_velocity, motorHandle,-1,'')
The same error occurs with example rosTopicPublisherAndSubscriber.ttt (included in V-Rep). Sometimes the V-Rep closes with another message, as follows.

"terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
Aborted (core dumped)"

andresoliveira
Posts: 2
Joined: 07 Jun 2014, 15:51

Re: Ros Indigo Crash

Post by andresoliveira »

I solved these problems with the following steps.

1) download V-Rep 3.1.2 64 bits again
2) copy the vrep_plugin from vrep-installation/programming/ros_packages to catkin_ws/src
3) change CMakeLists.txt of vrep_plugin to Indigo libraries "link_directories("/opt/ros/indigo/lib")"
4) compile plugin "roscd vrep_plugin and catkin_make"
5) copy the builded plugin form /devel/lib/libv_repExtRos.so to v-rep installation directory

coppelia
Site Admin
Posts: 10558
Joined: 14 Dec 2012, 00:25

Re: Ros Indigo Crash

Post by coppelia »

Thanks for mentionning this Andres!

Cheers

curka
Posts: 62
Joined: 16 Apr 2013, 19:57

Re: Ros Indigo Crash

Post by curka »

could you creat a video about the installation method, please?

curka
Posts: 62
Joined: 16 Apr 2013, 19:57

Re: Ros Indigo Crash

Post by curka »

:(

Post Reply