runtime/README.md

58 lines
1.2 KiB
Markdown
Raw Normal View History

2021-10-13 05:58:24 +00:00
# Robossembler ROS2
Repo for ROS2 packages related to Robossembler
## Instructions
### Requirements
2023-02-03 07:04:12 +00:00
* OS: Ubuntu 22.04
* ROS 2 Humble
### Dependencies
These are the primary dependencies required to use this project.
* MoveIt 2
> Install/build a version based on the selected ROS 2 release
2023-02-03 07:04:12 +00:00
* Gazebo Fortress
### Build
1. Clone the repository
2023-02-03 07:04:12 +00:00
2. Build packages `colcon build`
2023-02-03 07:04:12 +00:00
Prepare workspace & install dependencies (So far only tested with UR robot arm)
```
mkdir -p ~/robossembler_ws/src && cd ~/robossembler_ws/src
git clone https://gitlab.com/robosphere/robossembler-ros2
2023-02-03 07:04:12 +00:00
vcs import . < robossembler-ros2/rbs.repos
cd ..
2023-02-03 07:04:12 +00:00
rosdep install -y -r -q --from-paths src --ignore-src --rosdistro humble
colcon build
```
### Examples
Add source to environment
```
2023-02-03 07:04:12 +00:00
. install/setup.bash
2022-01-20 00:18:03 +03:00
```
2023-02-03 07:04:12 +00:00
Launch MoveIt2, Gazebo, RViz
```bash
2023-02-03 07:04:12 +00:00
ros2 launch rbs_simulation rbs_simulation.launch.py
```
2023-02-03 07:04:12 +00:00
#### Launch bt_tree
It will execute `bt_tree` once from file `rbs_bt_executor/bt_trees/test_tree.xml`
2022-01-19 17:22:13 +04:00
```
2023-02-03 07:04:12 +00:00
ros2 launch rbs_executor rbs_executor.launch.py
```
2023-02-03 07:04:12 +00:00
The robot arm should move to the point from config file in path
```
rbs_bt_executor/config/points.yaml
2022-01-19 17:22:13 +04:00
```
### Links
* [bt_v3_cpp](https://www.behaviortree.dev)
2023-02-03 07:04:12 +00:00
* [moveit2](https://moveit.picknik.ai/humble/index.html)