2018-05-06-navigation-atwork
Note : For simulation please check simulation_mapping.md
Export the youbot ssh alias
To shh the youbot (in all terminals):
this is the alias to connect to the youbot
Run roscore
Launch the robot
Run rviz
Set the global frame to base_link
Launch SLAM
Note: the map is built using the front laser's only
Run the map saver
Go to the folder with the map roscd mcr_default_env_config
By using ls
you can see several folders corresponding to existing environments. You can either use an existing map or create a new one:
Before running the map_saver you need to be located in the environment folder:
And then run:
This will create two files: a map.pgm
and map.yml
.
Finally, to use the map that you just created you need to check which map will be loaded by the navigation stack:
If you need to change it:
Note: Usually the .rosc
script is used to set the environment, among other variables.
Navigation
Bringup the robot
First export the environment to be used: export ROBOT_ENV=brsu-C025
Launch the robot:
Launch the navigation node
Create navigation goals and orientations
First you need to create the files where goals will be saved:
Localize the robot
In rviz: 1. Select the 2D pose estimate 2. Click the position near the robot 3. Move with joystick 4. Launch navigation tools (in yb2)
Run move_base
Navigation test
Last updated
Was this helpful?