runtime/README.md

65 lines
1.6 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)
```bash
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 --merge-install --symlink-install # args are optional
```
### Set Gazebo enviroment variables
Replace `[WS_FOLDER]` with your workspace folder
```bash
echo "export IGN_GAZEBO_RESOURCE_PATH=${IGN_GAZEBO_RESOURCE_PATH}:~/robossembler_ws/install/share/rbs_simulation:~/robossembler_ws/install/share" >> ~/.bashrc
```
### 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
```
#### Launch bt_tree (TBD)
2023-02-03 07:04:12 +00:00
It will execute `bt_tree` once from file `rbs_bt_executor/bt_trees/test_tree.xml`
2022-01-19 17:22:13 +04:00
```
ros2 launch rbs_bt_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)