mirror of
https://github.com/bjoernellens1/cps_rmp220_support.git
synced 2025-01-18 23:56:59 +00:00
update
This commit is contained in:
parent
ec27a88e2c
commit
c314bb90a2
@ -82,4 +82,13 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
// Set the velocity
|
// Set the velocity
|
||||||
odom.child_frame_id = "base_link";
|
odom.child_frame_id = "base_link";
|
||||||
odom.twist.twist
|
odom.twist.twist.linear.x = vx;
|
||||||
|
odom.twist.twist.linear.y = 0.0; // No lateral velocity
|
||||||
|
odom.twist.twist.angular.z = vth;
|
||||||
|
|
||||||
|
odom_pub.publish(odom);
|
||||||
|
|
||||||
|
last_time = current_time;
|
||||||
|
r.sleep();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user