Skip to content
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

camera_info_topic cannot be set #2

Open
Aikhjarto opened this issue Jul 19, 2021 · 3 comments · May be fixed by #4
Open

camera_info_topic cannot be set #2

Aikhjarto opened this issue Jul 19, 2021 · 3 comments · May be fixed by #4

Comments

@Aikhjarto
Copy link

Aikhjarto commented Jul 19, 2021

Hi!

I have a node publishing camera data in /cam1/camera_info and /cam1/image/raw as side-by-side stereo image.
I will have multiple cameras so I set the topic names tor side_x_side_stereo_node accordingly:

rosrun side_x_side_stereo side_x_side_stereo_node \
_input_image_topic:=/cam1/image_raw \
_left_output_image_topic:=/cam1/left/image_raw \
_right_output_image_topic:=/cam1/right/image_raw \
_left_camera_info_topic:=/cam1/left/camera_info \
_right_camera_info_topic:=/cam1/right/camera_info

However, the published topics look like this:

/cam1/camera_info
/cam1/image_raw
/cam1/image_raw/compressed
/cam1/image_raw/compressed/parameter_descriptions
/cam1/image_raw/compressed/parameter_updates
/cam1/image_raw/compressedDepth
/cam1/image_raw/compressedDepth/parameter_descriptions
/cam1/image_raw/compressedDepth/parameter_updates
/cam1/image_raw/theora
/cam1/image_raw/theora/parameter_descriptions
/cam1/image_raw/theora/parameter_updates
/cam1/left/image_raw
/cam1/left/image_raw/compressed
/cam1/left/image_raw/compressed/parameter_descriptions
/cam1/left/image_raw/compressed/parameter_updates
/cam1/left/image_raw/compressedDepth
/cam1/left/image_raw/compressedDepth/parameter_descriptions
/cam1/left/image_raw/compressedDepth/parameter_updates
/cam1/left/image_raw/theora
/cam1/left/image_raw/theora/parameter_descriptions
/cam1/left/image_raw/theora/parameter_updates
/cam1/right/image_raw
/cam1/right/image_raw/compressed
/cam1/right/image_raw/compressed/parameter_descriptions
/cam1/right/image_raw/compressed/parameter_updates
/cam1/right/image_raw/compressedDepth
/cam1/right/image_raw/compressedDepth/parameter_descriptions
/cam1/right/image_raw/compressedDepth/parameter_updates
/cam1/right/image_raw/theora
/cam1/right/image_raw/theora/parameter_descriptions
/cam1/right/image_raw/theora/parameter_updates
/rosout
/rosout_agg
/sxs_stereo/left/camera_info
/sxs_stereo/right/camera_info

Note, that the camera_info is published under /sxs_stereo/left/camera_info and /sxs_stereo/right/camera_info, thus ignoring the parameters _left_camera_info_topic and _right_camera_info_topic

Any idea how to fix that?

@dbc
Copy link
Owner

dbc commented Jul 30, 2021

Sorry life has been busy and I did not have time to look into your issue. I see that you found a very clean solution and I just now merged your changes. Thank you!

@dbc dbc closed this as completed Jul 30, 2021
@Aikhjarto
Copy link
Author

Aikhjarto commented Jul 30, 2021

There seems to be a bit of confusion, as my pull request #3 did not resolve this issue. My pull request did solve another issue, where the frame_id was not set correctly. For the missing frame_id problem, I did not bother to make create an issue, since I could solve it myself.

The problem mentioned in this issue still persists.

@dbc
Copy link
Owner

dbc commented Jul 30, 2021

Sorry. Bad assumption on my part. Re-opening. Thanks!

@dbc dbc reopened this Jul 30, 2021
@Tacha-S Tacha-S linked a pull request Aug 29, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants