-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Fix missing vehicle name in ros camera msg #4509
base: main
Are you sure you want to change the base?
Conversation
Hi @alonfaraj, thank you for submitting this fix. I tested this locally and it looks like it correctly renamed the camera frame and I can now see the camera image in rviz. However, I'm getting a warning message in rviz now when I add the camera topic: Here are my repro steps:
expected: camera topic added with Do you know why this warning is occurring after applying your fix? Additionally, I'm noticing with your fix there's still a frame named |
Hi @zimmy87, thanks for the review, I missed the camera info somehow. I made a fix so camera info is under the camera name namespace. The only problem I encounter now regarding the camera info is in case we have 2 different So we do need to change the frame id of the image msg, then we have to change the camera info topic to under the camera name namespace, but it will cause a problem when we have different |
Hi @alonfaraj!. Thanks for yet another contribution. If I understand what you are saying correctly, we should have a topic for each CaptureSettings of each camera. If so, why don't we add the ImageType of each CaptureSettings to the camera name? In this case, it would be /airsim_node/Drone1/Test0_0, where the last 0 would be the ImageType |
- publish camera info for each camera topic
Hi @jonyMarino, that's correct. 2 things up to your decision:
|
Excellent work @alonfaraj!
|
Fixes: #
About
This PR fix missing vehicle name in published Image camera header.
Applied for ros1 and ros2.
How Has This Been Tested?
Without this fix, it's not possible to show the image in rviz2 on the map/world frame.
Run ros wrapper and show the image in rviz2 under the world_enu frame.
Screenshots (if appropriate):