Page 1 of 1

Ros Indigo Crash

Posted: 15 May 2014, 21:21
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

Re: Ros Indigo Crash

Posted: 16 May 2014, 09:44
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

Re: Ros Indigo Crash

Posted: 17 May 2014, 11:05
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

Re: Ros Indigo Crash

Posted: 24 Jul 2014, 16:40
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)"

Re: Ros Indigo Crash

Posted: 24 Jul 2014, 21:10
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

Re: Ros Indigo Crash

Posted: 25 Jul 2014, 00:54
by coppelia
Thanks for mentionning this Andres!

Cheers

Re: Ros Indigo Crash

Posted: 05 Aug 2014, 22:02
by curka
could you creat a video about the installation method, please?

Re: Ros Indigo Crash

Posted: 17 Aug 2014, 18:25
by curka
:(