-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ros2' into shutdown_explicitly
- Loading branch information
Showing
22 changed files
with
464 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Camera bridge configuration. | ||
- topic_name: "/camera" | ||
ros_type_name: "sensor_msgs/msg/Image" | ||
gz_type_name: "gz.msgs.Image" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- topic_name: "/camera_info" | ||
ros_type_name: "sensor_msgs/msg/CameraInfo" | ||
gz_type_name: "gz.msgs.CameraInfo" | ||
lazy: true | ||
direction: GZ_TO_ROS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Diff drive configuration. | ||
- topic_name: "/model/vehicle_blue/cmd_vel" | ||
ros_type_name: "geometry_msgs/msg/Twist" | ||
gz_type_name: "gz.msgs.Twist" | ||
lazy: true | ||
direction: ROS_TO_GZ | ||
|
||
- topic_name: "/model/vehicle_blue/odometry" | ||
ros_type_name: "nav_msgs/msg/Odometry" | ||
gz_type_name: "gz.msgs.Odometry" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- topic_name: "/model/vehicle_green/cmd_vel" | ||
ros_type_name: "geometry_msgs/msg/Twist" | ||
gz_type_name: "gz.msgs.Twist" | ||
lazy: true | ||
direction: ROS_TO_GZ | ||
|
||
- topic_name: "/model/vehicle_green/odometry" | ||
ros_type_name: "nav_msgs/msg/Odometry" | ||
gz_type_name: "gz.msgs.Odometry" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- ros_topic_name: "/tf" | ||
gz_topic_name: "/model/vehicle_green/tf" | ||
ros_type_name: "tf2_msgs/msg/TFMessage" | ||
gz_type_name: "gz.msgs.Pose_V" | ||
direction: GZ_TO_ROS | ||
|
||
- ros_topic_name: "/tf" | ||
gz_topic_name: "/model/vehicle_blue/tf" | ||
ros_type_name: "tf2_msgs/msg/TFMessage" | ||
gz_type_name: "gz.msgs.Pose_V" | ||
direction: GZ_TO_ROS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# GPU lidar configuration. | ||
- topic_name: "/lidar" | ||
ros_type_name: "sensor_msgs/msg/LaserScan" | ||
gz_type_name: "gz.msgs.LaserScan" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- topic_name: "/lidar/points" | ||
ros_type_name: "sensor_msgs/msg/PointCloud2" | ||
gz_type_name: "gz.msgs.PointCloudPacked" | ||
lazy: true | ||
direction: GZ_TO_ROS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# rgbd_camera_bridge configuration. | ||
- ros_topic_name: "/camera/image" | ||
gz_topic_name: "/camera" | ||
ros_type_name: "sensor_msgs/msg/Image" | ||
gz_type_name: "gz.msgs.Image" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- ros_topic_name: "/camera/camera_info" | ||
gz_topic_name: "/camera_info" | ||
ros_type_name: "sensor_msgs/msg/CameraInfo" | ||
gz_type_name: "gz.msgs.CameraInfo" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- topic_name: "/rgbd_camera/image" | ||
ros_type_name: "sensor_msgs/msg/Image" | ||
gz_type_name: "gz.msgs.Image" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- topic_name: "/rgbd_camera/camera_info" | ||
ros_type_name: "sensor_msgs/msg/CameraInfo" | ||
gz_type_name: "gz.msgs.CameraInfo" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- topic_name: "/rgbd_camera/depth_image" | ||
ros_type_name: "sensor_msgs/msg/Image" | ||
gz_type_name: "gz.msgs.Image" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- topic_name: "/rgbd_camera/points" | ||
ros_type_name: "sensor_msgs/msg/PointCloud2" | ||
gz_type_name: "gz.msgs.PointCloudPacked" | ||
lazy: true | ||
direction: GZ_TO_ROS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# triggered_cammera configuration. | ||
- topic_name: "/camera" | ||
ros_type_name: "sensor_msgs/msg/Image" | ||
gz_type_name: "gz.msgs.Image" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- topic_name: "/camera_info" | ||
ros_type_name: "sensor_msgs/msg/CameraInfo" | ||
gz_type_name: "gz.msgs.CameraInfo" | ||
lazy: true | ||
direction: GZ_TO_ROS | ||
|
||
- topic_name: "/camera/trigger" | ||
ros_type_name: "std_msgs/msg/Bool" | ||
gz_type_name: "gz.msgs.Boolean" | ||
lazy: true | ||
direction: ROS_TO_GZ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<launch> | ||
<gz_server | ||
world_sdf_file="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/camera.yaml" | ||
use_composition="True" /> | ||
<node pkg="rviz2" exec="rviz2" args="-d $(find-pkg-share ros_gz_sim_demos)/rviz/camera.rviz" /> | ||
<node pkg="tf2_ros" exec="static_transform_publisher" args="--frame-id camera_link --child-frame-id camera/link/camera --roll 1.570796327 --yaw 1.570796327" /> | ||
<executable cmd="gz sim -g" /> | ||
</launch> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<launch> | ||
<gz_server | ||
world_sdf_file="diff_drive.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/diff_drive.yaml" | ||
use_composition="True"> | ||
<param name="qos_overrides./model/vehicle_blue.subscriber.reliability" value='reliable'></param> | ||
<param name="qos_overrides./model/vehicle_green.subscriber.reliability" value='reliable'></param> | ||
</ros_gz_bridge> | ||
<node pkg="rviz2" exec="rviz2" args="-d $(find-pkg-share ros_gz_sim_demos)/rviz/diff_drive.rviz" /> | ||
<node pkg="tf2_ros" exec="static_transform_publisher" args="--frame-id world --child-frame-id vehicle_green/odom --y -2" /> | ||
<node pkg="tf2_ros" exec="static_transform_publisher" args="--frame-id world --child-frame-id vehicle_blue/odom --y 2" /> | ||
<executable cmd="gz sim -g" /> | ||
</launch> |
Oops, something went wrong.