MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/SOAR / Odom_callback

Function Odom_callback

src/simulator/cascadePID/src/cascadePID_node.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20nav_msgs::Odometry current_odom, last_odom;
21int first_odom_flag = 0;
22void Odom_callback(const nav_msgs::Odometry &odom) {
23 if (first_odom_flag == 1) {
24 last_odom = current_odom;
25 } else {
26 first_odom_flag = 1;
27 }
28 current_odom = odom;
29 ROS_INFO("current odom received");
30}
31
32geometry_msgs::PoseStamped pose_cmd;
33int control_flag = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected