Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
LattePanda for dev committed May 3, 2023
1 parent 606b648 commit 616bfa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Examples/ROS/ORB_SLAM2/src/ros_stereo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,14 @@ void ImageGrabber::GrabStereo(const sensor_msgs::ImageConstPtr& msgLeft,const se

void ImageGrabber::onResetCommand(const std_msgs::String::ConstPtr& data)
{
ROS_INFO("Received control command: %s", msg.data.c_str());
if (msg.data == "reset")
ROS_INFO("Received control command: %s", data->data.c_str());
if (data->data == "reset")
{
mpSLAM->Reset();
}
else
{
ROS_WARN("Unknown command: %s", msg.data.c_str());
ROS_WARN("Unknown command: %s", data->data.c_str());
}
}

1 comment on commit 616bfa7

@YujiElfahkrany
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed!

Please sign in to comment.