-
Notifications
You must be signed in to change notification settings - Fork 734
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
port image_rotate on ros2 #385
Conversation
@mjcarroll image_rotate has been ported on ROS2, just update the APIs to ROS2 and the feature is keep the same with previous. I had verified based on ROS2 RealSense camera as raw image input. Would you please kindly help to review the code, many thanks. |
Great, I'll put this on my list to review. I think that you'll also be interested to know that we are working on some launch improvements for composable nodes, which should directly impact some of the |
@yechun1 - Please rebase your branch on the |
* replace nodelet(nodelet::Nodelet) with class_loader(rclcpp::Node) * use ros2param instead of dymanic_reconfigure * update image_transport APIs * use tf2 time with header.stamp operation * replace other ros APIs with ROS2 APIs Test: 1. Start camera, for example run ros2_intel_realsense as camera raw image input. 2. run rviz2 to add two images with /camera/color/image_raw and /camera_color/image_raw_rotated 3. ros2 run image_rotate image_rotate image:=/camera/color/image_raw camera_info:=/camera/color/camera_info rotated/image:=/camera/color/image_raw_rotated (or by launch) ros2 launch image_rotate image_rotate.launch.py 4. Set param: by ros2param as rqt_reconfigure similar UI tool has not ported yet on ROS2 ros2 param set /ImageRotateNode target_x 0.5
9991f4c
to
7a3bb6a
Compare
thanks for enable the CI, finished code rebase, please help review. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My changes are mostly semantic and some are subjective. Let me know once you've looked them over and I'll approve.
Nodelet is probably not the correct designation for this anymore since there is no longer a concept of a "nodelet" in ROS2, use "_node" instead. Signed-off-by: Chris Ye <chris.ye@intel.com>
@JWhitleyAStuff thanks for nice comments, I have updated the changes, would you please review again? |
Hope this package could be merged and publish on ROS2 D release :) |
port image_rotate on ros2
for test: verified based on ros2_intel_realsense package as camera image input source.
ros2 run image_rotate image_rotate image:=/camera/color/image_raw camera_info:=/camera/color/camera_info rotated/image:=/camera/color/image_raw_rotated
(or by launch)
ros2 launch image_rotate image_rotate.launch.py
set param: by ros2param as rqt_reconfigure similar UI tool has not ported yet on ROS2
ros2 param set /ImageRotateNode target_x 0.5
modify code to follow ros2 coding style