-
Notifications
You must be signed in to change notification settings - Fork 139
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
Refactor triggered_camera demo #645
base: ros2
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,27 @@ | ||||||
# triggered_cammera configuration. | ||||||
- ros_topic_name: "/camera" | ||||||
gz_topic_name: "/camera" | ||||||
ros_type_name: "sensor_msgs/msg/Image" | ||||||
gz_type_name: "gz.msgs.Image" | ||||||
subscriber_queue: 5 | ||||||
publisher_queue: 6 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to specify these for sure? Can we not just use the defaults? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed in 3c5d49b. |
||||||
lazy: false | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think there's harm in making lazy=true.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed in 3c5d49b. |
||||||
direction: GZ_TO_ROS | ||||||
|
||||||
- ros_topic_name: "/camera_info" | ||||||
gz_topic_name: "/camera_info" | ||||||
ros_type_name: "sensor_msgs/msg/CameraInfo" | ||||||
gz_type_name: "gz.msgs.CameraInfo" | ||||||
subscriber_queue: 5 | ||||||
publisher_queue: 6 | ||||||
lazy: false | ||||||
direction: GZ_TO_ROS | ||||||
|
||||||
- ros_topic_name: "/camera/trigger" | ||||||
gz_topic_name: "/camera/trigger" | ||||||
ros_type_name: "std_msgs/msg/Bool" | ||||||
gz_type_name: "gz.msgs.Boolean" | ||||||
subscriber_queue: 5 | ||||||
publisher_queue: 6 | ||||||
lazy: false | ||||||
direction: ROS_TO_GZ |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<launch> | ||
<gz_server world_sdf_file="triggered_camera_sensor.sdf" use_composition="True" create_own_container="True" /> | ||
<ros_gz_bridge bridge_name="ros_gz_bridge" config_file="$(find-pkg-share ros_gz_sim_demos)/config/triggered_camera.yaml" use_composition="True" /> | ||
<node pkg="rviz2" exec="rviz2" args="-d $(find-pkg-share ros_gz_sim_demos)/rviz/camera.rviz" /> | ||
<executable cmd="gz sim -g" /> | ||
</launch> |
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.
This can be simlpified
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.
Simplified in 3c5d49b.