Build a a own navigation using RVIZ for initial and goal position
Hey guys,
I am right now trying to build up my own navigation solution. I succesfully made it to let my robot start from a initial to a goal position using my own navigation algo. Now I am trying to use RVIZ for setting the initial and goal position by simply marking it on the map as estimations. I saw, that the turtlebot uses the same solution for it` navigation program. I had a look at that one and it seems pretty complex with the amcl package etc.
The only thing I need is getting the initial and goal position as coordinates as input for my algo. The precision of the localization is not a priority for me. But here comes my question. I can use
rospy.wait_for_message('move_base_simple/goal', PoseStamped)
rospy.Subscriber('move_base_simple/goal', PoseStamped, self.update_goal)
to get the goal position, but is there also something to get the initial position?
Secondly, I tried to use
rosrun map_server map_server map.yaml
for loading my map but nothing happened. Is there another command to get into the GUI where I can load my map and choose the positions for goal and start?
Kind regards and thanks in advance!