Works with rosrun but not with roslaunch

asked 2017-08-14 04:48:24 -0500

yh gravatar image

updated 2017-08-14 13:45:51 -0500

jayess gravatar image

Hello,

I have a video data being streamed into a local host (to a socket). When I run my executable using rosrun it works well, but when I use roslaunch to run the same node, it says the resource is temporarily unavailable (error from the socket).

The error message I get is this:

process[cmvideo_node-1]: started with pid [9553]
VDS: unknown host: __name:=cmvideo_node
Can't initialise vds client (returns -2, Resource temporarily unavailable)
terminate called after throwing an instance of 'class_loader::LibraryUnloadException'
  what():  Attempt to unload library that class_loader is unaware of.
[cmvideo_node-1] process has died [pid 9553, exit code -6, cmd /home/providentia/Documents/bridge_demo/workspace/cm_sim/devel/lib/cmvideo/cmvideo_node __name:=cmvideo_node __log:=/home/providentia/.ros/log/395ae26a-80d3-11e7-abe7-f48e38a43ac3/cmvideo_node-1.log].
log file: /home/providentia/.ros/log/395ae26a-80d3-11e7-abe7-f48e38a43ac3/cmvideo_node-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done

I use the following for rosrun: rosrun cmvideo cmvideo_node

And I use the following launch file: <node pkg = "cmvideo" type="cmvideo_node" name="cmvideo_node" ></node>

I know it's not a syntax problem, because the error message I get from the roslaunch is not from ros but from my executable file. Thank you for your help in advance!

edit retag flag offensive close merge delete

Comments

This has most likely nothing to do with MoveIt, but the cmvideo_node is not structured correctly. It is not processing the args that ROS passes to it correctly. @yh: please link us to (on github fi) your node, or include a snippet that shows how your node is initialised. Add it to your question ..

gvdhoorn gravatar image gvdhoorn  ( 2017-08-15 02:04:19 -0500 )edit

.. by using the edit link/button.

gvdhoorn gravatar image gvdhoorn  ( 2017-08-15 02:04:29 -0500 )edit