[Navigation stack] self defined Actionlib or move_base?
Hi, I have a crucial question about the realization of a navigation for my robot model. The robot is already moving very well and as expected in a simulative environment (RViz). Given a target point, it is able to calculate the desired trajectory and moves to the point autonomously.
One drawback in my design is: I have implemented everything on my own and since the dynamic model was really difficult to realize and I never did use the move_base
package or something like that. In my code reads the controller points and not velocities commands (like the output of move_base
, which is /cmd_vel
)
Now I want to implement a navigation stack for my robot but I m a little bit confused about which way should I consider:
- Option: I could take inspiration from the tutorials about
move_base
and leave it putting out velocities commands which I ll later feed into my robot's model. Pro: exaustive tutorials about move_base on this website and lot of explanations. Contra: my robot reads goals defined as points and moves accordingly to reach them. Feeding velocities commands instead of positions will not work. - Option: I feed the goal's position into the model and write an actionlib (server + client) to track the progress to the goals. At the goal it will trigger to the next goal. Pro: it sounds much easier and logic than the above idea. Contra: no idea on how to start developing such a server/client application and mostly important I could not use implement something like the base_local_planner if I need to generate a simple map to avoid obstacles (till now not necessary).
UPDATE #1:
The controller reads the published points (goals) respect to the /odom
frame and the controller drive the robot there. Since fthe only transformation is between /odom
and /frame_link
I made the assumption that goals are "fixed" respect to the world (in RViz). Later I m going to publish them respect to /map
.
I hoe my question is clear enough. It not I will update it!
Thanks in advance
So the robot controller takes in points? In what reference frame?