Independently change angular and linear velocities (cmd_vel)
Hi people!
This is really an easy question for the experts:
I am coding some roslisp/cram functions where I would like to change independently the angular and linear velocity of my robot in parallel threads. I first used the usual way of publishing the velocity in roslisp roslisp:advertise "/cmd_vel" "geometry_msgs/Twist"
but then I realised that when publishing an angular velocity (roslisp:publish-msg (roslisp:advertise "/cmd_vel" "geometry_msgs/Twist") pub (z angular))
I would reset the linear speed to zero and the converse when publishing a linear speed.
Is there any [easy] way to modify the angular and linear velocity of the robot independently from one another in simultaneous processes?
The only solution I have is any time I want to modify only one component of the velocity is to read the current velocity and publish the values of the changed component together with the values that are not change. That is not ideal as with parallel threads changing simultaneously the same topic I might have problems.
Hey, thanks a lot.