Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions robotnik_gazebo_ignition/config/rbvogui/bridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,45 @@
direction: GZ_TO_ROS

# gz topic published by Sensors plugin
- ros_topic_name: "/robot/front_laser/scan"
gz_topic_name: "/robot/front_laser/scan"
ros_type_name: "sensor_msgs/msg/LaserScan"
gz_type_name: "gz.msgs.LaserScan"
direction: GZ_TO_ROS
#- ros_topic_name: "/robot/front_laser/scan"
# gz_topic_name: "/robot/front_laser/scan"
# ros_type_name: "sensor_msgs/msg/LaserScan"
# gz_type_name: "gz.msgs.LaserScan"
# direction: GZ_TO_ROS

#gz topic published by Sensors plugin
- ros_topic_name: "/robot/rear_laser/scan"
gz_topic_name: "/robot/rear_laser/scan"
ros_type_name: "sensor_msgs/msg/LaserScan"
gz_type_name: "gz.msgs.LaserScan"
direction: GZ_TO_ROS
#- ros_topic_name: "/robot/rear_laser/scan"
# gz_topic_name: "/robot/rear_laser/scan"
# ros_type_name: "sensor_msgs/msg/LaserScan"
# gz_type_name: "gz.msgs.LaserScan"
# direction: GZ_TO_ROS

# gz topic published by Sensors plugin (Camera)
- ros_topic_name: "/robot/front_rgbd_camera/color/camera_info"
gz_topic_name: "/robot/front_camera_color/color/camera_info"
ros_type_name: "sensor_msgs/msg/CameraInfo"
gz_type_name: "gz.msgs.CameraInfo"
direction: GZ_TO_ROS
#- ros_topic_name: "/robot/front_rgbd_camera/color/camera_info"
# gz_topic_name: "/robot/front_camera_color/color/camera_info"
# ros_type_name: "sensor_msgs/msg/CameraInfo"
# gz_type_name: "gz.msgs.CameraInfo"
# direction: GZ_TO_ROS

- ros_topic_name: "/robot/front_rgbd_camera/color/image_raw"
gz_topic_name: "/robot/front_camera_color/color/image_raw"
ros_type_name: "sensor_msgs/msg/Image"
gz_type_name: "gz.msgs.Image"
direction: GZ_TO_ROS
#- ros_topic_name: "/robot/front_rgbd_camera/color/image_raw"
# gz_topic_name: "/robot/front_camera_color/color/image_raw"
# ros_type_name: "sensor_msgs/msg/Image"
# gz_type_name: "gz.msgs.Image"
# direction: GZ_TO_ROS

- ros_topic_name: "/robot/rear_rgbd_camera/color/camera_info"
gz_topic_name: "/robot/rear_camera_color/color/camera_info"
ros_type_name: "sensor_msgs/msg/CameraInfo"
gz_type_name: "gz.msgs.CameraInfo"
direction: GZ_TO_ROS
#- ros_topic_name: "/robot/rear_rgbd_camera/color/camera_info"
# gz_topic_name: "/robot/rear_camera_color/color/camera_info"
# ros_type_name: "sensor_msgs/msg/CameraInfo"
# gz_type_name: "gz.msgs.CameraInfo"
# direction: GZ_TO_ROS

- ros_topic_name: "/robot/rear_rgbd_camera/color/image_raw"
gz_topic_name: "/robot/rear_camera_color/color/image_raw"
ros_type_name: "sensor_msgs/msg/Image"
gz_type_name: "gz.msgs.Image"
direction: GZ_TO_ROS
#- ros_topic_name: "/robot/rear_rgbd_camera/color/image_raw"
# gz_topic_name: "/robot/rear_camera_color/color/image_raw"
# ros_type_name: "sensor_msgs/msg/Image"
# gz_type_name: "gz.msgs.Image"
# direction: GZ_TO_ROS

# gz topic published by Sensors plugin (IMU)
#gz topic published by Sensors plugin (IMU)
- ros_topic_name: "/robot/imu/data"
gz_topic_name: "/robot/imu/data"
ros_type_name: "sensor_msgs/msg/Imu"
Expand Down
11 changes: 5 additions & 6 deletions robotnik_gazebo_ignition/launch/spawn_robot.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,14 @@ def generate_launch_description():
ld.add_action(init_robotnik_controller)

rviz2_config = [get_package_share_directory('robotnik_gazebo_ignition'),'/config/', robot,'/rviz_config.rviz']

rviz2 = Node(
package="rviz2",
executable="rviz2",
parameters=[
{'display_config': bridge_params},
],
namespace=params['namespace']
namespace=params['namespace'],
arguments=['-d', rviz2_config]

)
ld.add_action(rviz2)

return ld

return ld
8 changes: 4 additions & 4 deletions robotnik_gazebo_ignition/launch/spawn_world.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ def generate_launch_description():

arg = ExtendedArgument(
name='world',
description='world in gazebo classic',
default_value='demo.sdf.world',
description='world in gazebo ignition',
default_value='demo.sdf',
# default_value='warehouse_big.sdf',
)
add_to_launcher.add_arg(arg)

arg = ExtendedArgument(
name='world_path',
description='world path in gazebo classic',
default_value=[FindPackageShare('robotnik_gazebo_ignition'), '/worlds/ignition/', world],
description='world path in gazebo ignition',
default_value=[FindPackageShare('robotnik_gazebo_ignition'), '/worlds/', world],
)
add_to_launcher.add_arg(arg)

Expand Down
Loading