when rosrun works and roslaunch malfunctions
I am just started to work with ROS and I am facing a strange problem. I have executable based on camera driver and another executable which just show the images grabbed (imshownode). While I start the driver using rosrun and either rosrun or roslaunch imshownode everything works fine, however if I use roslaunch to start the dirver, and then roslaunch the imshow_node it doesnt show the images, it doesnt give me error neither.
I dont know if anyone came cross this problem before and I appreciate your help Cheers.
Asked by mr101470 on 2017-02-03 11:21:39 UTC
Comments
Can you add the launch file for the driver to your question? If the node can work properly, yet it simply fails when started from a launch file, it could be due to namespace changes or topic remappings that occur within the launch file.
Asked by Steven_Daniluk on 2017-02-03 11:49:30 UTC
here is the launch file for the driver :
Asked by mr101470 on 2017-02-03 12:48:39 UTC
and here is the launch file for the node :
Asked by mr101470 on 2017-02-03 12:53:42 UTC
The launch file for
pleora_polarcam_driver
is passing in an argument for the ip address. Do you also supply that argument when starting it withrosrun
?Asked by Steven_Daniluk on 2017-02-03 14:32:10 UTC
Hi Steven, Yes, the ip I pass it in the rosrun as well, but after your comment I checked and infact, my node name for the driver was the same as the package name and I thought the name that I insert in the launch file, doest not need to be exactly the same. Thanks for your answer
Asked by mr101470 on 2017-02-04 05:33:40 UTC
So it's working now?
Asked by Steven_Daniluk on 2017-02-04 12:42:51 UTC