-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gazebo_ros_multicamera plugin: left camera has wrong namespace #161
Comments
I believe that we have been using the multicamera plugin extensively during the DRC developement and I've never found this problem before, so probably we have a workaround in place, a different approach or I'm plain wrong. @hsu what could be the case? |
I have not seen it either, for reference, a multicamera example is found here, and here's the corresponding stereo_image_proc. Which version/flavor of |
see ros-simulation#161 for the issue description
Sorry for the delay. I am working with the hydro-devel branch of gazebo_ros_pkgs. By adding a simple sleep in the appropriate place you should be able to reproduce the problem, see jordi-pages@fb0250c with such sleep I get both cameras publishing in /stereo/image. The cause is that GazeboRosCameraUtils::LoadThread() is run before the last instruction in GazeboRosCameraUtils::Load() which appends the camera name suffix. |
Using our drcsim atlas simulation and your sleep trick I was not able to reproduce the bug, the topic namespaces are correct. Jordi, could you quickly provide a repository with a URDF and a ROS launch that we can use to reproduce the issue? thanks. |
I spoke with John yesterday, he was able to reproduce the fail after several tries. I'm fine with the merge and the release. Thanks Jordi. |
Ok, thanks a lot to both you |
There was a race condition between GazeboRosCameraUtils::LoadThread creating the ros::NodeHandle and GazeboRosCameraUtils::Load suffixing the camera name in the namespace
multicamera bad namespace. Fixes ros-simulation#161
I am defining a stereo camera in a urdf as follows:
the expected ROS topic for the camera are:
/stereo/left/camera_info
/stereo/left/image
/stereo/right/camera_info
/stereo/right/image
Unfortunately, most of the times I launch gazebo the topics are:
/stereo/camera_info
/stereo/image
/stereo/right/camera_info
/stereo/right/image
where the left camera namespace does not appear correctly. The most strange thing is that from time to time gazebo launches properly and the right camera namespace appear. No error message appears during gazebo start up.
The text was updated successfully, but these errors were encountered: