| ... | ... | @@ -257,12 +257,12 @@ The turtlebot4 includes a motion planner that can navigate and avoid obstacles. |
|
|
|
ros2 action send_goal /navigate_to_pose nav2_msgs/action/NavigateToPose "pose: {header: {frame_id: map}, pose: {position: {x: 6.0, y: 2.0, z: 0.0}, orientation:{x: 0.0, y: 0.0, z: 0, w: 1.0000000}}}"
|
|
|
|
```
|
|
|
|
|
|
|
|
It can also be started from RViz. Before we start, you should add the following visualizations (similarly to Lab1, two types should be used, i.e., ```Map``` and ```Path```):
|
|
|
|
It can also be started from RViz. Before we start, you should add the following visualizations (similarly to Lab1, two types should be used, i.e., ```Map``` and ```Path```, add two ``M̀ap```and two ```Path```):
|
|
|
|
|
|
|
|
* ```/global_costmap/costmap``` and change the colorscheme to costmap
|
|
|
|
* ```/local_costmap/costmap``` and change the colorscheme to costmap
|
|
|
|
* ```/plan/```
|
|
|
|
* ```/local_plan/``` and change the color to red
|
|
|
|
* ```/global_costmap/costmap``` and change the colorscheme to costmap (```Map```)
|
|
|
|
* ```/local_costmap/costmap``` and change the colorscheme to costmap (```M̀ap```)
|
|
|
|
* ```/plan``` (```Path```)
|
|
|
|
* ```/local_plan``` (```Path```) and change the color to red
|
|
|
|
|
|
|
|
If you run the ```NavigateToPose``` action, you should see the following in ```Rviz```:
|
|
|
|
|
| ... | ... | |