From 34f20ca437746547d0c31e8c14c6f16d2eddf994 Mon Sep 17 00:00:00 2001 From: Franco Cipollone Date: Wed, 24 Apr 2024 15:36:18 -0300 Subject: [PATCH] Fixes bug with odometry. Signed-off-by: Franco Cipollone --- andino_gz/config/bridge_config.yaml | 10 +++++----- andino_gz/urdf/andino_gz.urdf.xacro | 7 +++---- andino_gz/worlds/depot.sdf | 2 +- andino_gz/worlds/empty.sdf | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/andino_gz/config/bridge_config.yaml b/andino_gz/config/bridge_config.yaml index 4949a7a..c845568 100644 --- a/andino_gz/config/bridge_config.yaml +++ b/andino_gz/config/bridge_config.yaml @@ -4,7 +4,7 @@ gz_type_name: "gz.msgs.Clock" direction: GZ_TO_ROS - ros_topic_name: "/odom" - gz_topic_name: "/odom" + gz_topic_name: "/model/andino/odometry" ros_type_name: "nav_msgs/msg/Odometry" gz_type_name: "gz.msgs.Odometry" direction: GZ_TO_ROS @@ -14,22 +14,22 @@ gz_type_name: "gz.msgs.Pose_V" direction: GZ_TO_ROS - ros_topic_name: "/camera_info" - gz_topic_name: "/camera_info" + gz_topic_name: "/world/gazebo_world/model/andino/link/base_link/sensor/camera/camera_info" ros_type_name: "sensor_msgs/msg/CameraInfo" gz_type_name: "gz.msgs.CameraInfo" direction: GZ_TO_ROS - ros_topic_name: "/image_raw" - gz_topic_name: "/image_raw" + gz_topic_name: "/world/gazebo_world/model/andino/link/base_link/sensor/camera/image" ros_type_name: "sensor_msgs/msg/Image" gz_type_name: "gz.msgs.Image" direction: GZ_TO_ROS - ros_topic_name: "/scan" - gz_topic_name: "/scan" + gz_topic_name: "/world/gazebo_world/model/andino/link/base_link/sensor/sensor_ray_front/scan" ros_type_name: "sensor_msgs/msg/LaserScan" gz_type_name: "gz.msgs.LaserScan" direction: GZ_TO_ROS - ros_topic_name: "/scan/points" - gz_topic_name: "/scan/points" + gz_topic_name: "/world/gazebo_world/model/andino/link/base_link/sensor/sensor_ray_front/scan/points" ros_type_name: "sensor_msgs/msg/PointCloud2" gz_type_name: "gz.msgs.PointCloudPacked" direction: GZ_TO_ROS diff --git a/andino_gz/urdf/andino_gz.urdf.xacro b/andino_gz/urdf/andino_gz.urdf.xacro index 4f076b1..10e153f 100644 --- a/andino_gz/urdf/andino_gz.urdf.xacro +++ b/andino_gz/urdf/andino_gz.urdf.xacro @@ -6,12 +6,14 @@ + name="ignition::gazebo::systems::DiffDrive"> left_wheel_joint right_wheel_joint 0.137 0.0175 1 + odom + base_link @@ -37,7 +39,6 @@ 0.01 - scan true true 20.0 @@ -70,8 +71,6 @@ 1 30 true - image_raw - camera_info diff --git a/andino_gz/worlds/depot.sdf b/andino_gz/worlds/depot.sdf index 9fb6a9a..3b2cf4a 100644 --- a/andino_gz/worlds/depot.sdf +++ b/andino_gz/worlds/depot.sdf @@ -1,7 +1,7 @@ - + 0.01 1 diff --git a/andino_gz/worlds/empty.sdf b/andino_gz/worlds/empty.sdf index c5c3118..a89e8e1 100644 --- a/andino_gz/worlds/empty.sdf +++ b/andino_gz/worlds/empty.sdf @@ -1,6 +1,6 @@ - + 0.01 1