Abhy,<br><br><div class="gmail_quote">On Mon, Jan 31, 2011 at 10:43 PM, abhy <span dir="ltr"><<a href="mailto:abhy.12354@gmail.com">abhy.12354@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hello Eitan,<br>
<br>
Yes, you are right!<br>
<br>
We are trying to achieve to send goals to the robot one after another. In<br>
tutorial it can set only a single goal.<br>
<br>
We had tried couple of thing to work this out:<br>
<br>
1.  Put while(ros::ok()) loop around move_base tutorial code and check if<br>
old destination <> new_destination, if yes then send_goal to Action server.<br>
like, below:<br>
<br>
while(ros::ok())<br>
{<br>
  if goal.x <> old_goal and same for y then,<br>
  {goal.x = <x from outside><br>
  goal.y = <y from outside><br>
  send_goal and wait for feedback;}<br>
   old_goal = goal.x and same for y.<br>
  ros::spin();<br>
}<br>
<br>
Here, we found that it does not stop for a goal to achieve, while loop<br>
continues its execution. We also tried with threads.<br></blockquote><div><br></div><div>Looping around a call to send_goal_and_wait should do what you want, the code should block until the goal is completed and then allow for the next goal to be sent. I suspect that the real problem is that move_base is aborting on the goals that you send to it for some reason.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
2. In next trial, we removed the code from while loop and kept code as it<br>
is. Here, we gave a call to move_base code from some outside code which is<br>
receiving destinations x,y.<br>
like,<br>
<br>
  Code1: receive new x,y other than old if yes call move_base program.<br>
  and in move_base_program: same code given in the tutorial.<br>
<br>
Even this did not work.<br>
<br>
3. we also explored your rviz goal.cpp file where we found you are<br>
populating data in poseStamped directly. So we tried to copy the same<br>
fundamental in our code which also did not help.<br>
<br>
Every time we are getting below message after trying all above option,<br>
"Aborting because a valid plan could not be found. Even after executing all<br>
recovery behaviors"<br>
The interesting part is that, it is setting an arrow against destination in<br>
rviz but not planning a path towards it.<br></blockquote><div><br></div><div>The message you've posted above is the navigation stack telling you that it cannot achieve your goal and is aborting on it. Specifically, the global planner cannot create a plan to your goal point. This is likely because the goal point is in an obstacle. Can you look in rviz and check to see if the goal point is in an obstacle, inflated obstacle or unknown space? A tutorial on using rviz with the navigation stack can be found here:<a href="http://www.ros.org/wiki/navigation/Tutorials/Using%20rviz%20with%20the%20Navigation%20Stack">http://www.ros.org/wiki/navigation/Tutorials/Using%20rviz%20with%20the%20Navigation%20Stack</a></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
4. Apart from all above options finally, we tried finally to give goals one<br>
after another from rviz. In this case it worked properly (arrow set and path<br>
is planned). We tried to give same goals which were there in first through<br>
first options.<br>
My rxconsole is taking lot of time to execute so i am not able to get the<br>
output from it.<br></blockquote><div><br></div><div>Are you sure that the goals you are giving in rviz are the same as those that are coming from code? It seems like the difference between the goals is that the ones you're sending via rviz are valid, meaning the navigation stack can create a plan to them, while the ones that you're sending from code are not.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
Long story short, It is setting an arrow from code or directly from rviz but<br>
it does not draw a line of local planner from robot to destination if it is<br>
through our code.<br></blockquote><div><br></div><div>You're not seeing a plan from code because the navigation stack is unable to create a plan and aborts on the goal... so this is expected.</div><div><br></div><div>
Hope this helps,</div><div><br></div><div>Eitan</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Are we suppose work on any other point?<br>
<br>
-Abhy<br>
<font color="#888888">--<br>
View this message in context: <a href="http://ros-users.122217.n3.nabble.com/Move-base-fails-tp2369343p2395552.html" target="_blank">http://ros-users.122217.n3.nabble.com/Move-base-fails-tp2369343p2395552.html</a><br>
</font><div><div></div><div class="h5">Sent from the ROS-Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br>