Skip to content

Commit

Permalink
rm useless param
Browse files Browse the repository at this point in the history
  • Loading branch information
yandy committed Mar 14, 2022
1 parent 07c2ecd commit b5523e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/drive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ class QuadDriveImpl {
void OnCmdPose(geometry_msgs::msg::Pose::ConstSharedPtr const &msg);

/// Update odometry.
/// \param[in] _current_time Current simulation time
void UpdateOdometry(const gazebo::common::Time &_current_time);
void UpdateOdometry();

/// Publish odometry transforms
/// \param[in] _current_time Current simulation time
Expand Down Expand Up @@ -328,7 +327,7 @@ void QuadDriveImpl::OnUpdate(gazebo::common::UpdateInfo const &info) {
}
robot_ctrl_->RunOnce();

UpdateOdometry(info.simTime);
UpdateOdometry();
if (publish_odom_) PublishOdometryMsg(info.simTime);
if (publish_odom_tf_) PublishOdometryTf(info.simTime);

Expand Down Expand Up @@ -358,7 +357,7 @@ void QuadDriveImpl::OnCmdPose(geometry_msgs::msg::Pose::ConstSharedPtr const &ms
drive_ctrl_->UpdatePose(drive_pose_);
}

void QuadDriveImpl::UpdateOdometry(const gazebo::common::Time &_current_time) {
void QuadDriveImpl::UpdateOdometry() {
auto const &est = robot_ctrl_->GetEstimatState();

odom_.pose.pose.position.x = est.pos[0];
Expand Down

0 comments on commit b5523e0

Please sign in to comment.