rosinterface issue

Typically: "How do I... ", "How can I... " questions
Post Reply
patchaaquatica

rosinterface issue

Post by patchaaquatica »

Hi,

I'm trying to control my own simulation via rosInterface and am having some connection issues after building the my catkin_ws.

I'm modelling it from the rosInterfaceControlledBubbleRob in the ControlTypeExamples. I have successfully built both projects (my own and ros_bubble_rob2), but when I go to run the bubblerob simulation after building my own, V-REP crashes and I get this output:

Code: Select all

Using the default Lua library.
Loaded the video compression library.
Add-on script 'vrepAddOnScript-addOnScriptDemo.lua' was loaded.
Simulator launched.
Plugin 'MeshCalc': loading...
Plugin 'MeshCalc': load succeeded.
Plugin 'BlueZero': loading...
Plugin 'BlueZero': warning: replaced variable 'simB0'
Plugin 'BlueZero': load succeeded.
Plugin 'BubbleRob': loading...
Plugin 'BubbleRob': load succeeded.
Plugin 'Bwf': loading...
Plugin 'Bwf': load succeeded.
Plugin 'Collada': loading...
Plugin 'Collada': load succeeded.
Plugin 'ConvexDecompose': loading...
Plugin 'ConvexDecompose': load succeeded.
Plugin 'CustomUI': loading...
Plugin 'CustomUI': warning: replaced variable 'simUI'
Plugin 'CustomUI': load succeeded.
Plugin 'DynamicsBullet-2-78': loading...
Plugin 'DynamicsBullet-2-78': load succeeded.
Plugin 'DynamicsBullet-2-83': loading...
Plugin 'DynamicsBullet-2-83': load succeeded.
Plugin 'DynamicsNewton': loading...
Plugin 'DynamicsNewton': load succeeded.
Plugin 'DynamicsOde': loading...
Plugin 'DynamicsOde': load succeeded.
Plugin 'DynamicsVortex': loading...
Plugin 'DynamicsVortex': load succeeded.
Plugin 'ExternalRenderer': loading...
Plugin 'ExternalRenderer': load succeeded.
Plugin 'ICP': loading...
Plugin 'ICP': warning: replaced variable 'simICP'
Plugin 'ICP': load succeeded.
Plugin 'Image': loading...
Error with plugin 'Image': load failed (could not load). The plugin probably couldn't load dependency libraries. For additional infos, modify the script 'libLoadErrorCheck.sh', run it and inspect the output.
Plugin 'K3': loading...
Plugin 'K3': load succeeded.
Plugin 'LuaCommander': loading...
Plugin 'LuaCommander': warning: replaced variable 'simLuaComm'
Plugin 'LuaCommander': load succeeded.
Plugin 'LuaRemoteApiClient': loading...
Plugin 'LuaRemoteApiClient': load succeeded.
Plugin 'Mtb': loading...
Plugin 'Mtb': load succeeded.
Plugin 'OMPL': loading...
Plugin 'OMPL': warning: replaced variable 'simOMPL'
Plugin 'OMPL': load succeeded.
Plugin 'OpenMesh': loading...
Plugin 'OpenMesh': load succeeded.
Plugin 'PovRay': loading...
Plugin 'PovRay': load succeeded.
Plugin 'Qhull': loading...
Plugin 'Qhull': load succeeded.
Plugin 'RRS1': loading...
Plugin 'RRS1': load succeeded.
Plugin 'ReflexxesTypeII': loading...
Plugin 'ReflexxesTypeII': load succeeded.
Plugin 'RemoteApi': loading...
Starting a remote API server on port 19997
Plugin 'RemoteApi': load succeeded.
Plugin 'RosInterface': loading...
Plugin 'RosInterface': warning: replaced variable 'simROS'
Plugin 'RosInterface': load succeeded.
Plugin 'RosSkeleton': loading...
Plugin 'RosSkeleton': load succeeded.
Plugin 'SDF': loading...
Plugin 'SDF': warning: replaced variable 'simSDF'
Plugin 'SDF': load succeeded.
Plugin 'SurfaceReconstruction': loading...
Plugin 'SurfaceReconstruction': warning: replaced variable 'simSurfRec'
Plugin 'SurfaceReconstruction': load succeeded.
Plugin 'Urdf': loading...
Plugin 'Urdf': load succeeded.
Plugin 'Vision': loading...
Plugin 'Vision': load succeeded.
Using the 'MeshCalc' plugin.
Initializing the Bullet physics engine in plugin 'DynamicsBullet_2_78'...
Engine version: 2.78
Plugin version: 10
Initialization successful.
Connecting to client...
Failed to connect to client.
[dummyNode] {main} DEBUG: Initialization...
[dummyNode] {main} DEBUG: ServiceClient(resolv): Skipping resolution because remote address (tcp://localhost:22000) was given
[dummyNode] {main} TRACE: ServiceClient(resolv): Connecting to tcp://localhost:22000...
[dummyNode] {main} TRACE: ServiceClient(resolv): Announcing node 'dummyNode' to resolver...
[dummyNode] {main} TRACE: ServiceClient(resolv): Waiting for response from resolver...
[dummyNode] {main} TRACE: ServiceClient(resolv): Proxy's XPUB socket address: tcp://XPS:44823
[dummyNode] {main} TRACE: ServiceClient(resolv): Proxy's XSUB socket address: tcp://XPS:52825
[dummyNode] {main} TRACE: Publisher(log): Connecting to tcp://XPS:52825...
[dummyNode] {main} TRACE: Starting heartbeat thread...
[dummyNode] {main} DEBUG: Initializing sockets...
[dummyNode] {main} DEBUG: Initialization complete.
[dummyNode] {main} DEBUG: Killing heartbeat thread...
[Skipped logger because in another thread]: ServiceClient(resolv): Skipping resolution because remote address (tcp://localhost:22000) was given
[Skipped logger because in another thread]: ServiceClient(resolv): Connecting to tcp://localhost:22000...
[dummyNode] {main} DEBUG: Cleanup sockets...
[dummyNode] {main} TRACE: ServiceClient(resolv): Disconnecting from tcp://localhost:22000...
[dummyNode] {main} DEBUG: Initialization...
[dummyNode] {main} DEBUG: ServiceClient(resolv): Skipping resolution because remote address (tcp://localhost:22000) was given
[dummyNode] {main} TRACE: ServiceClient(resolv): Connecting to tcp://localhost:22000...
[dummyNode] {main} TRACE: ServiceClient(resolv): Announcing node 'dummyNode' to resolver...
[dummyNode] {main} TRACE: ServiceClient(resolv): Waiting for response from resolver...
[dummyNode] {main} TRACE: ServiceClient(resolv): Proxy's XPUB socket address: tcp://XPS:44823
[dummyNode] {main} TRACE: ServiceClient(resolv): Proxy's XSUB socket address: tcp://XPS:52825
[dummyNode] {main} TRACE: Publisher(log): Connecting to tcp://XPS:52825...
[dummyNode] {main} TRACE: Starting heartbeat thread...
[dummyNode] {main} DEBUG: Initializing sockets...
[dummyNode] {main} DEBUG: Initialization complete.
[Skipped logger because in another thread]: ServiceClient(resolv): Skipping resolution because remote address (tcp://localhost:22000) was given
[Skipped logger because in another thread]: ServiceClient(resolv): Connecting to tcp://localhost:22000...
rosBubbleRob2 just started with node name rosBubbleRob14076322
rosBubbleRob2 just ended!
controlTypeExamples works fine when my own project isn't built in the catkin_ws. I don't have any conflicting parameter names that I can see in the .cpp's.

I had a look at previous issues with ports and my netstat is this:

Code: Select all

tcp        0      0 0.0.0.0:40647           0.0.0.0:*               LISTEN      21683/vrep      
tcp        0      0 0.0.0.0:43505           0.0.0.0:*               LISTEN      21683/vrep      
udp        0      0 0.0.0.0:38200           0.0.0.0:*                           21683/vrep  
Is there some conflict between my scene and the controlTypeExamples one?

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

Re: rosinterface issue

Post by fferri »

Do you have a stacktrace of the crash?

The output you posted contains no indication of crash.

Post Reply