runtime/rasms_manipulator/README.md

53 lines
1.6 KiB
Markdown
Raw Normal View History

2021-12-15 20:15:18 +03:00
# Robossembler Plansys2 example
2021-12-09 07:33:12 +00:00
2021-12-15 20:15:18 +03:00
Plansys2 & MoveIt2 example on ROS2 Foxy
### Install
Install ```colcon``` with ```mixin``` (it's required to install ```moveit_visual_tools```):
2021-12-09 07:33:12 +00:00
```bash
2021-12-15 20:15:18 +03:00
sudo apt install python3-colcon-common-extensions python3-colcon-mixin python3-vcstool
2021-12-09 07:33:12 +00:00
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
colcon mixin update default
```
2021-12-15 20:15:18 +03:00
Prepare workspace & install dependencies
2021-12-09 07:33:12 +00:00
```
2021-12-15 20:15:18 +03:00
mkdir -p ~/robossembler_ws/src && cd ~/robossembler_ws/src
git clone https://gitlab.com/robosphere/robossembler-ros2 -b dev-motion-planning-plansys2
vcs import . < robossembler-ros2/rasms.repos
cd ..
rosdep install -y -r -q --from-paths src --ignore-src --rosdistro foxy
colcon build --symlink-install --mixin release
2021-12-09 07:33:12 +00:00
```
2021-12-15 20:15:18 +03:00
### Run
Add source to environment
```
source install/setup.bash
```
Launch MoveIt2, Gazebo, RViz
2021-12-09 07:33:12 +00:00
```bash
ros2 launch rasms_moveit_config rasms_bringup.launch.py
```
2021-12-15 20:15:18 +03:00
Launch PlanSys2 with domain from ```pddl/domain.pddl```
2021-12-09 07:33:12 +00:00
```bash
2021-12-15 20:15:18 +03:00
ros2 launch rasms_manipulator rasms_manipulation.launch.py
2021-12-09 07:33:12 +00:00
```
2021-12-15 20:15:18 +03:00
Launch Plansys2 Terminal
2021-12-09 07:33:12 +00:00
```bash
ros2 run plansys2_terminal plansys2_terminal
```
2022-01-09 09:58:08 +00:00
Then into plansys2_terminal paste command (see updates into pddl/commands)
2021-12-09 07:33:12 +00:00
```bash
set instance rasms robot
set instance one zone
set predicate (robot_at rasms one)
set goal (and(robot_moved rasms one))
run
```
2021-12-15 20:15:18 +03:00
### Links
2021-12-09 07:33:12 +00:00
* [plansys2_bt](https://intelligentroboticslab.gsyc.urjc.es/ros2_planning_system.github.io/tutorials/docs/bt_actions.html)
* [bt_v3_cpp](https://www.behaviortree.dev)
* [moveit2](https://moveit.picknik.ai/foxy/index.html)