Skip to content

Commit 74f2cd0

Browse files
committed
Adding camera topics correctly
1 parent 38b5845 commit 74f2cd0

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

CustomRobots/roomba_robot/params/roombaROS_cam.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@
3939
direction: GZ_TO_ROS
4040

4141
# gz topic published by Sensors plugin (Camera)
42-
- ros_topic_name: "/camera/image_raw"
43-
gz_topic_name: "/camera/image_raw"
44-
ros_type_name: "sensor_msgs/msg/Image"
45-
gz_type_name: "gz.msgs.Image"
46-
direction: GZ_TO_ROS
47-
4842
- ros_topic_name: "/camera/camera_info"
4943
gz_topic_name: "/camera/camera_info"
5044
ros_type_name: "sensor_msgs/msg/CameraInfo"

Launchers/montecarlo_visual_localization/spawn_robot.launch.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ def generate_launch_description():
7777
output="screen",
7878
)
7979

80-
# start_gazebo_ros_image_bridge_cmd = Node(
81-
# package="ros_gz_image",
82-
# executable="image_bridge",
83-
# arguments=["/turtlebot3/camera/image_raw"],
84-
# output="screen",
85-
# )
80+
start_gazebo_ros_image_bridge_cmd = Node(
81+
package="ros_gz_image",
82+
executable="image_bridge",
83+
arguments=["/camera/image_raw"],
84+
output="screen",
85+
)
8686

8787
# start_gazebo_ros_depth_bridge_cmd = Node(
8888
# package="ros_gz_image",
@@ -101,7 +101,7 @@ def generate_launch_description():
101101
# Add any conditioned actions
102102
# ld.add_action(start_gazebo_ros_spawner_cmd)
103103
ld.add_action(start_gazebo_ros_bridge_cmd)
104-
# ld.add_action(start_gazebo_ros_image_bridge_cmd)
104+
ld.add_action(start_gazebo_ros_image_bridge_cmd)
105105
# ld.add_action(start_gazebo_ros_depth_bridge_cmd)
106106

107107
return ld

0 commit comments

Comments
 (0)