trying to play back images from multiple cameras in rxbag causes both videos to flip between cameras
I have two urdf files: one of a robot w/ a front camera and the other of a camera that I have floating in the air as a top view perspective.
The cameras in the xacro files are as follows: (camera.urdf.xacro)
<gazebo reference="camera_optical_frame">
<sensor:camera name="top_view_camera_sensor">
<imageSize>640 480</imageSize>
<imageFormat>R8G8B8</imageFormat>
<hfov>90</hfov>
<nearClip>0.01</nearClip>
<farClip>100</farClip>
<updateRate>10.0</updateRate>
<controller:gazebo_ros_camera name="top_camera_controller" plugin="libgazebo_ros_camera.so">
<alwaysOn>true</alwaysOn>
<updateRate>10.0</updateRate>
<imageTopicName>top_view/image_raw</imageTopicName>
<interface:camera name="top_camera_iface" />
</controller:gazebo_ros_camera>
</sensor:camera>
<turnGravityOff>true</turnGravityOff>
<material>Gazebo/Blue</material>
</gazebo>
And the one for the robot is similar:
<gazebo reference="base_camera_optical_frame">
<sensor:camera name="base_camera_sensor">
<imageSize>640 480</imageSize>
<imageFormat>R8G8B8</imageFormat>
<hfov>90</hfov>
<nearClip>0.01</nearClip>
<farClip>100</farClip>
<updateRate>10.0</updateRate>
<controller:gazebo_ros_camera name="base_camera_controller" plugin="libgazebo_ros_camera.so">
<alwaysOn>true</alwaysOn>
<updateRate>20.0</updateRate>
<imageTopicName>my_robot/camera</imageTopicName>
<frameName>base_camera_optical_frame</frameName>
</controller:gazebo_ros_camera>
</sensor:camera>
<turnGravityOff>true</turnGravityOff>
<material>Gazebo/Blue</material>
</gazebo>
When I try and view the "image" of each camera back in rxbag I get images from both cameras in each video. Is something wrong in my setup?
Both cameras display fine during runtime with image_view.