Skip to content

Commit 6c24247

Browse files
authored
Fix Camera info test (#326)
* fix camera info test --------- Signed-off-by: Ian Chen <[email protected]>
1 parent 898570d commit 6c24247

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Camera_TEST.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ sdf::ElementPtr CameraToSdf(const std::string &_type,
5959
<< " <link name='link1'>"
6060
<< " <sensor name='" << _name << "' type='" << _type << "'>"
6161
<< " <topic>" << _topic << "</topic>"
62-
<< " <topic>" << _cameraInfoTopic << "</topic>"
6362
<< " <update_rate>"<< _updateRate <<"</update_rate>"
6463
<< " <always_on>"<< _alwaysOn <<"</always_on>"
6564
<< " <visualize>" << _visualize << "</visualize>"
6665
<< " <camera>"
66+
<< " <camera_info_topic>" << _cameraInfoTopic
67+
<< "</camera_info_topic>"
6768
<< " <horizontal_fov>.75</horizontal_fov>"
6869
<< " <image>"
6970
<< " <width>640</width>"
@@ -160,7 +161,7 @@ TEST(Camera_TEST, CreateCamera)
160161

161162
// Check topics
162163
EXPECT_EQ("/cam", cam->Topic());
163-
EXPECT_EQ("/camera_info", cam->InfoTopic());
164+
EXPECT_EQ("my_camera/camera_info", cam->InfoTopic());
164165

165166
// however camera is not loaded because a rendering scene is missing so
166167
// updates will not be successful and image size will be 0

0 commit comments

Comments
 (0)