Skip to content

Commit a64566e

Browse files
authored
fix(tier4_camera_view_rviz_plugin): fix unusedFunction (#8639)
* fix:unusedFunction Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:clang format Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:unusedFunction Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> --------- Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent b905562 commit a64566e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

common/tier4_camera_view_rviz_plugin/src/bird_eye_view_controller.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ void BirdEyeViewController::reset()
9999
y_property_->setFloat(0);
100100
}
101101

102+
// cppcheck-suppress unusedFunction
102103
void BirdEyeViewController::handleMouseEvent(rviz_common::ViewportMouseEvent & event)
103104
{
104105
if (event.shift()) {
@@ -178,11 +179,13 @@ void BirdEyeViewController::update(float dt, float ros_dt)
178179
updateCamera();
179180
}
180181

182+
// cppcheck-suppress unusedFunction
181183
void BirdEyeViewController::lookAt(const Ogre::Vector3 & point)
182184
{
183185
setPosition(point - target_scene_node_->getPosition());
184186
}
185187

188+
// cppcheck-suppress unusedFunction
186189
void BirdEyeViewController::onTargetFrameChanged(
187190
const Ogre::Vector3 & old_reference_position,
188191
const Ogre::Quaternion & /*old_reference_orientation*/)

common/tier4_camera_view_rviz_plugin/src/third_person_view_controller.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ void ThirdPersonViewController::updateCamera()
226226
distance_property_->getFloat() * CAMERA_OFFSET);
227227
}
228228

229+
// cppcheck-suppress unusedFunction
229230
void ThirdPersonViewController::updateTargetSceneNode()
230231
{
231232
if (FramePositionTrackingViewController::getNewTransform()) {

0 commit comments

Comments
 (0)