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

image_view for ros2 #374

Closed
wants to merge 1 commit into from
Closed

Conversation

ahuizxc
Copy link

@ahuizxc ahuizxc commented Dec 11, 2018

usage for test:
image_view:
"ros2 run image_view image_view_exe --topic /camera/image --transport raw" or "ros2 run image_view image_view_exe --topic /camera/image"
image_saver:
"ros2 run image_view image_saver --topic /camera/image"
stereo_view:
"ros2 run image_view stereo_view --left_topic /camera/left_image --right_topic /camera/right_image --disparity /camera/disparity_image"
video_recoder:
"ros2 run image_view video_recoder --topic /camera/image --filename output.avi"
disparity_node:
ros2 launch image_view
"ros2 launch image_view disparity_node.launch.py"

@yechun1
Copy link
Contributor

yechun1 commented Dec 12, 2018

not all tests passed in my local, I'll try to do some changes based on this PR.

@yechun1
Copy link
Contributor

yechun1 commented Dec 14, 2018

@ahuizxc I did some changes based on your patch, would you please apply on your code and modify other files. here is the patch for reference: yechun1@335f5c7

@ahuizxc
Copy link
Author

ahuizxc commented Jan 17, 2019

@yechun1 @mjcarroll I have made some changes to this package for better launch and more consist with ros.

@JWhitleyWork
Copy link
Collaborator

@ahuizxc - Please rebase your branch on the ros2 branch. This will bring in fixes from melodic and the new CI.

Port depth image proc on ROS2 (ros-perception#362)

* Port depth_image_proc on ROS2

* Port depth_image_proc of image_pipeline on ROS2

* rename Nodelets as Node

* add launch examples, such as "ros2 launch depth_image_proc point_cloud_xyzi.launch.py"

* verified point_cloud_xyzrgb, point_cloud_xyz, convert_metric based on Realsense camera(https://github.com/intel/ros2_intel_realsense).

Signed-off-by: Chris Ye <chris.ye@intel.com>

* add ament_lint_auto test and adjust code style

Signed-off-by: Chris Ye <chris.ye@intel.com>

* update test example for depth_image_proc

- rename raw topic as image_transport fixed the issue (ros-perception/image_common#96)
- update test example of point_cloud_xyzrgb.launch

Signed-off-by: Chris Ye <chris.ye@intel.com>

* remove unused dependence in cmakelist

* remove boost which is unused on ROS2

* remove cv_bridge version check logic as setted in find_package

* update maintainer in package.xml

Signed-off-by: Chris Ye <chris.ye@intel.com>

* added all example launchers for demo test

pass test:
 ros2 launch depth_image_proc point_cloud_xyzrgb.launch.py
 ros2 launch depth_image_proc point_cloud_xyz.launch.py
 ros2 launch depth_image_proc convert_metric.launch.py
 ros2 launch depth_image_proc crop_foremost.launch.py
 ros2 launch depth_image_proc point_cloud_xyz_radial.launch.py
 ros2 launch depth_image_proc disparity.launch.py
 ros2 launch depth_image_proc register.launch.py
 ros2 launch depth_image_proc point_cloud_xyzi.launch.py
 ros2 launch depth_image_proc point_cloud_xyzi_radial.launch.py

Signed-off-by: Chris Ye <chris.ye@intel.com>

* @wip update to use raw pointers.

* continue to update to use raw pointer

Signed-off-by: Chris Ye <chris.ye@intel.com>

enable rclcpp_register_node_plugins (ros-perception#368)

this may be remarked while code debugging, should be enabled to build node plugin file
and added points remap in point_cloud_xyzrgb.launch.py

port image_publisher on ROS2 (ros-perception#366)

* port image_publisher on ROS2
* switch to use cmake 3.5
* change nodelet to classloader
* change ros::param to ros2 parameter APIs
* use ros2 code style
* enable ros2 camera_info_manager

Changelogs.

2.0.0

code change for ros2 image_view porting

run example:
  ros2 run image_view image_view --image /camera/color/image_raw

add launch file to consist with ros
image_view:
	ros2 launch image_view image_view.launch.py image:=<image topic>
disparity_view:
	ros2 launch image_view disparity_view.launch.py image:=<disparity image topic>
stereo_view:
	ros2 launch image_view stereo_view stereo:=<stereo namespace> image:=<image topic identifier>
image_saver:
    ros2 launch image_view image_saver.launch.py image:=<image topic>
extract_images:
    ros2 launch image_view extract_images.launch.py image:=<image topic>
video_recorder:
    ros2 launch image_view video_rocorder.launch.py images:=<image topic>

Details in README.md
@ahuizxc
Copy link
Author

ahuizxc commented Sep 23, 2019

@ahuizxc - Please rebase your branch on the ros2 branch. This will bring in fixes from melodic and the new CI.

hi, is there anything i can do? thanks:)

@SteveMacenski
Copy link
Member

@ahuizxc you need to rebase and fix these changes so you have just the image view stuff again.

@JWhitleyWork
Copy link
Collaborator

Replaced by #475

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.

5 participants