Skip to content

Update ROS 2 API usage in usb_cam_node - #388

Open
Tobias-Fischer wants to merge 1 commit into
ros-drivers:mainfrom
Tobias-Fischer:codex/robostack-usb-cam-ros2-api-updates
Open

Update ROS 2 API usage in usb_cam_node#388
Tobias-Fischer wants to merge 1 commit into
ros-drivers:mainfrom
Tobias-Fischer:codex/robostack-usb-cam-ros2-api-updates

Conversation

@Tobias-Fischer

Copy link
Copy Markdown

This is part of an effort to contribute RoboStack downstream patches back upstream.

Origin: patch/ros-rolling-usb-cam.patch, authored by Daisuke Nishimatsu.

This updates two usb_cam_node calls to the current ROS 2 APIs used by image_transport and camera_info_manager. The RoboStack patch also includes warning-policy and FFmpeg compatibility changes, but this PR keeps the ROS 2 API compatibility changes separate.

This upstreams the ROS 2 API compatibility portion of the RoboStack usb_cam patch.

image_transport::create_camera_publisher now accepts a node reference and QoS directly, and CameraInfoManager can be constructed from the node interfaces used by rclcpp::Node. Updating these calls keeps the node compatible with current ROS 2 APIs without carrying the unrelated warning-policy and FFmpeg hunks from the downstream patch.

Origin: patch/ros-rolling-usb-cam.patch, authored by Daisuke Nishimatsu.
Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
@Tobias-Fischer

Copy link
Copy Markdown
Author

FYI @wep21 and @traversaro: I opened this while upstreaming RoboStack patches tracked in RoboStack/robostack.github.io#16. This one comes from patch/ros-rolling-usb-cam.patch.

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 this pull request may close these issues.

1 participant