File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments