MCPcopy Create free account
hub / github.com/ROBOTIS-GIT/turtlebot3 / reset_odometry_callback

Method reset_odometry_callback

turtlebot3_node/src/odometry.cpp:309–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void Odometry::reset_odometry_callback(
310 const std::shared_ptr<std_srvs::srv::Trigger::Request> request,
311 std::shared_ptr<std_srvs::srv::Trigger::Response> response)
312{
313 (void)request;
314 robot_pose_ = {0.0, 0.0, 0.0};
315 robot_vel_ = {0.0, 0.0, 0.0};
316 response->success = true;
317 response->message = "Odometry reset";
318}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected