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

properly remap compressed topics #851

Merged
merged 3 commits into from
Jan 18, 2024

Conversation

mikeferguson
Copy link
Member

Before:

Pushing into namespace is broken, only image_raw changes (camera_info and transport topics should change):

ros2 run image_publisher image_publisher_node --ros-args -p filename:=test.png -r image_raw:=foo/image_raw
---
ros2 topic list
/camera_info
/foo/image_raw
/image_raw/compressed
/image_raw/compressedDepth
/image_raw/theora

Changing the name is also broken - only image_raw changes (transport topics should change):

ros2 run image_publisher image_publisher_node --ros-args -p filename:=test.png -r image_raw:=image2
---
ros2 topic list
/camera_info
/image2
/image_raw/compressed
/image_raw/compressedDepth
/image_raw/theora

After:

No remap still works:

ros2 run image_publisher image_publisher_node --ros-args -p filename:=test.png
---
ros2 topic list
/camera_info
/image_raw
/image_raw/compressed
/image_raw/compressedDepth
/image_raw/theora

Pushing into namespace now works:

ros2 run image_publisher image_publisher_node --ros-args -p filename:=test.png -r image_raw:=foo/image_raw
---
ros2 topic list
/foo/camera_info
/foo/image_raw
/foo/image_raw/compressed
/foo/image_raw/compressedDepth
/foo/image_raw/theora

Changing the name works correctly:

ros2 run image_publisher image_publisher_node --ros-args -p filename:=test.png -r image_raw:=image2
---
ros2 topic list
/camera_info
/image2
/image2/compressed
/image2/compressedDepth
/image2/theora

@mikeferguson
Copy link
Member Author

Although this fixes numerous bugs - we should only put this in rolling - it's going to break anybody who has manually worked around all the problems of image_transport in the past - and so we should only roll this out into Jazzy

@mikeferguson mikeferguson merged commit 9ba7d61 into ros-perception:rolling Jan 18, 2024
3 checks passed
@mikeferguson mikeferguson deleted the fix_839 branch January 18, 2024 15:21
Kotochleb pushed a commit to Kotochleb/image_pipeline that referenced this pull request May 27, 2024
## Before:

Pushing into namespace is broken, only image_raw changes (camera_info
and transport topics should change):
```
ros2 run image_publisher image_publisher_node --ros-args -p filename:=test.png -r image_raw:=foo/image_raw
---
ros2 topic list
/camera_info
/foo/image_raw
/image_raw/compressed
/image_raw/compressedDepth
/image_raw/theora
```

## After:

Pushing into namespace now works:
```
ros2 run image_publisher image_publisher_node --ros-args -p filename:=test.png -r image_raw:=foo/image_raw
---
ros2 topic list
/foo/camera_info
/foo/image_raw
/foo/image_raw/compressed
/foo/image_raw/compressedDepth
/foo/image_raw/theora
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants