From 6c242474b0ffc7892d1d9a591012e65cd0d40431 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Mon, 27 Feb 2023 13:35:58 -0800 Subject: [PATCH] Fix Camera info test (#326) * fix camera info test --------- Signed-off-by: Ian Chen --- src/Camera_TEST.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Camera_TEST.cc b/src/Camera_TEST.cc index 912b22a3..d90402c5 100644 --- a/src/Camera_TEST.cc +++ b/src/Camera_TEST.cc @@ -59,11 +59,12 @@ sdf::ElementPtr CameraToSdf(const std::string &_type, << " " << " " << " " << _topic << "" - << " " << _cameraInfoTopic << "" << " "<< _updateRate <<"" << " "<< _alwaysOn <<"" << " " << _visualize << "" << " " + << " " << _cameraInfoTopic + << "" << " .75" << " " << " 640" @@ -160,7 +161,7 @@ TEST(Camera_TEST, CreateCamera) // Check topics EXPECT_EQ("/cam", cam->Topic()); - EXPECT_EQ("/camera_info", cam->InfoTopic()); + EXPECT_EQ("my_camera/camera_info", cam->InfoTopic()); // however camera is not loaded because a rendering scene is missing so // updates will not be successful and image size will be 0