move_base and arduino interaction
hello i have an issue in my move_base and my arduino interaction ( robot description : robot with four wheels drive controlled by arduino i subscribe by arduino node to cmd_vel and controll the 4 motors ) I gave a goal to the robot , the robot navigate autonomously, when it reached the goal pub { 0 0 0 0 0 0 } and stopped publishing into /cmd_vel but my robot keep moving it didn't sub to the last msg in /cmd_vel and keep moving with the before last /cmd_vel data when i use keyboard it stoppet arduino code :
messageCb( const geometry_msgs::Twist& t)
{
.....
}
ros::Subscriber<geometry_msgs::twist> sub("/cmd_vel", &messageCb );
void setup()
{
...
nh.initNode();
nh.subscribe(sub);
}
void loop()
{
nh.spinOnce(); delay(50);
}
May I suggest a title chance? Your question seems to be more about how to deal with missed messages and robots that are controlled by velocity inputs.
move_base
and drivers that acceptTwist
are just one example of such a setup, and the question is therefor much broader.thank you yes i see :)