Skip to content

Commit

Permalink
hubero_ros - changed method impl order in NavigationRos cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rayvburn committed Feb 20, 2022
1 parent af82b11 commit 1aa92b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hubero_ros/src/navigation_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,6 @@ Vector3 NavigationRos::getVelocityCmd() const {
return cmd_vel_;
}

void NavigationRos::callbackCmdVel(const geometry_msgs::Twist::ConstPtr& msg) {
const std::lock_guard<std::mutex> lock(mutex_callback_);
cmd_vel_.X(msg->linear.x);
cmd_vel_.Y(msg->linear.y);
cmd_vel_.Z(msg->angular.z);
}

// static
void NavigationRos::setIdealCovariance(boost::array<double, 36>& cov) {
// update covariance - note that pose is perfectly known
Expand All @@ -285,4 +278,11 @@ void NavigationRos::setIdealCovariance(boost::array<double, 36>& cov) {
}
}

void NavigationRos::callbackCmdVel(const geometry_msgs::Twist::ConstPtr& msg) {
const std::lock_guard<std::mutex> lock(mutex_callback_);
cmd_vel_.X(msg->linear.x);
cmd_vel_.Y(msg->linear.y);
cmd_vel_.Z(msg->angular.z);
}

} // namespace hubero

0 comments on commit 1aa92b4

Please sign in to comment.