Skip to content

Commit

Permalink
fix(tier4_camera_view_rviz_plugin): fix unusedFunction (#8639)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
kobayu858 authored Aug 27, 2024
1 parent b905562 commit a64566e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ void BirdEyeViewController::reset()
y_property_->setFloat(0);
}

// cppcheck-suppress unusedFunction
void BirdEyeViewController::handleMouseEvent(rviz_common::ViewportMouseEvent & event)
{
if (event.shift()) {
Expand Down Expand Up @@ -178,11 +179,13 @@ void BirdEyeViewController::update(float dt, float ros_dt)
updateCamera();
}

// cppcheck-suppress unusedFunction
void BirdEyeViewController::lookAt(const Ogre::Vector3 & point)
{
setPosition(point - target_scene_node_->getPosition());
}

// cppcheck-suppress unusedFunction
void BirdEyeViewController::onTargetFrameChanged(
const Ogre::Vector3 & old_reference_position,
const Ogre::Quaternion & /*old_reference_orientation*/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ void ThirdPersonViewController::updateCamera()
distance_property_->getFloat() * CAMERA_OFFSET);
}

// cppcheck-suppress unusedFunction
void ThirdPersonViewController::updateTargetSceneNode()
{
if (FramePositionTrackingViewController::getNewTransform()) {
Expand Down

0 comments on commit a64566e

Please sign in to comment.