Skip to content

Commit 1e41490

Browse files
committed
added instructions for building the bridge
1 parent 68f59da commit 1e41490

File tree

2 files changed

+111
-12
lines changed

2 files changed

+111
-12
lines changed

README.md

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@ The CRS (Collaborative Robotic Sanding) Application buit in ROS2 eloquent
1010

1111
---
1212
### Workspace Setup
13+
#### Create the workspace directory
14+
```
15+
mkdir -p ~/crs_ws/src # Make a new workspace and source directory
16+
cd ~/crs_ws/src # Navigate to the workspace source directory
17+
git clone https://github.com/swri-robotics/collaborative-robotic-sanding.git # clone the repository
18+
```
19+
1320
#### Download source dependencies
1421
- Install [wstool](http://wiki.ros.org/wstool)
1522
- cd into your colcon workspace root directory
1623
- Run wstool as follows
1724
```
25+
cd ~/crs_ws
1826
wstool init src src/collaborative-robotic-sanding/crs.rosinstall
1927
wstool update -t src
2028
```
@@ -23,26 +31,31 @@ The CRS (Collaborative Robotic Sanding) Application buit in ROS2 eloquent
2331
- Install [rosdep](http://wiki.ros.org/rosdep)
2432
- From the root directory of your workspace run the following:
2533
```
26-
rosdep install --from-path src --ignore-src -r
34+
rosdep install --from-path src --ignore-src -ry
2735
```
28-
#### Download additional resources
36+
#### Download additional REQUIRED resources
2937
- ros-eloquent-launch-xml
3038
```
3139
sudo apt install ros-eloquent-launch-xml
3240
```
3341
This allows using xml formatted launch files
3442
35-
- QT5 is a dependency of [ros_scxml](https://github.com/swri-robotics/ros_scxml) therefore follow the instructions provided [here](https://github.com/swri-robotics/ros_scxml)
43+
- **QT5**, which is a dependency of [ros_scxml](https://github.com/swri-robotics/ros_scxml) therefore follow the instructions provided [here](https://github.com/swri-robotics/ros_scxml)
3644
37-
#### Workarounds
38-
- None at this moment
39-
40-
#### Build
45+
---
46+
#### Issues
47+
- To run on hardware it is necessary to build the ros1 robot driver and the bridge in separate workspace, see instructions on that below.
48+
---
49+
### Build
50+
##### ROS2 Application
51+
This will build the main application, from the workspace run the following
4152
```
4253
colcon build --symlink-install
4354
```
55+
**This application is all that is necessary to run the system in simulation mode with gazebo**
56+
57+
---
4458
45-
--
4659
### Setup
4760
#### Data Directory
4861
Create a soft link (shortcut) in the home directory as follows
@@ -63,10 +76,19 @@ Create a soft link (shortcut) in the home directory as follows
6376
---
6477
### Hardware dependencies
6578
The following instructions are necessary when running on real hardware:
66-
- Camera Driver
67-
Go to [Framos Depth Camera](https://www.framos.com/en/industrial-depth-cameras#downloads). Download and Extract the [tar file](https://www.framos.com/framos3d/D400e/Software/FRAMOS_D400e_Software_Package_v1-8-0_Linux64_x64.tar.gz) and then install the FRAMOS-librealsense2-2.29.8-Linux64_x64.deb debian
79+
#### Camera Driver
80+
- Go to [Framos Depth Camera](https://www.framos.com/en/industrial-depth-cameras#downloads). Download and Extract the [tar file](https://www.framos.com/framos3d/D400e/Software/FRAMOS_D400e_Software_Package_v1-8-0_Linux64_x64.tar.gz) and then install the FRAMOS-librealsense2-2.29.8-Linux64_x64.deb debian
81+
- Download source and debian dependencies
82+
```
83+
cd ~/crs_ws
84+
wstool merge -t src src/collaborative-robotic-sanding/crs_hardware.rosinstall
85+
wstool update -t src
86+
rosdep install --from-path src --ignore-src -ry
87+
colcon build --symlink-install
88+
```
89+
90+
#### Build ROS1 Robot Driver and Bridge
91+
- Follow instructions [here](ROS1_BRIDGE_BUILD_INSTRUCTIONS.md)
6892
69-
- UR robot driver bridging over ROS1
70-
Coming soon ...
7193
7294

ROS1_BRIDGE_BUILD_INSTRUCTIONS.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Hardware Setup
2+
3+
This application works on the Universal UR10 robot, as of now the ROS2 driver is not available therefore it is necessary to use the ROS1 bridge to allow the ROS1 robot driver to communicate with the ROS2 application
4+
5+
---
6+
## Requirements
7+
### ROS1
8+
- Install [ROS1 melodic](http://wiki.ros.org/melodic/Installation/Ubuntu)
9+
### Catkin
10+
- Install [catkin tools](https://catkin-tools.readthedocs.io/en/latest/installing.html)
11+
12+
### Wstool
13+
- Install [wstool](http://wiki.ros.org/wstool#Installation)
14+
---
15+
## Setting up Wokrspaces
16+
### ROS1 Workspace
17+
This workspace contains the robot driver node and a few other essential componets
18+
- Create a **crs_ros1_ws** ROS 1 workspace directory
19+
```
20+
source /opt/ros/melodic/setup.bash # Source ROS1
21+
mkdir -p ~/crs_ros1_ws/src # Make a new workspace and source directory
22+
cd ~/crs_ros1_ws/ # Navigate to the workspace root
23+
catkin init # Initialize it
24+
```
25+
> More info on catkin workspaces [here](https://catkin-tools.readthedocs.io/en/latest/quick_start.html)
26+
- Clone the **collaborative-robotic-sanding-ros1** repository
27+
```
28+
cd ~/crs_ros1_ws/src
29+
git clone https://github.com/swri-robotics/collaborative-robotic-sanding-ros1.git
30+
```
31+
- Download source dependencies with wstool
32+
```
33+
cd ~/crs_ros1_ws/
34+
wstool init src src/collaborative-robotic-sanding-ros1/crs.rosinstall
35+
```
36+
- Downlad debian dependences
37+
```
38+
rosdep install --from-path src --ignore-src -ry
39+
```
40+
> You'll need admin priviledges to install
41+
- Build with catkin
42+
```
43+
catkin build
44+
```
45+
### ROS1 Bridge Workspace
46+
This workspace contains the bridge implementation, it allows the ROS1 and ROS2 application to communicate.
47+
#### WARNING!!! : **It is requried that the ROS1 amd ROS2 workspaces have been built prior to building the bridge*
48+
- Create another workspace for the bridge
49+
```
50+
source /opt/ros/melodic/setup.bash # Source ROS1
51+
source /opt/ros/eloquent/setup.bash # Source ROS2
52+
mkdir -p ~/crs_ros_bridge_ws/src # Make a new workspace and source space
53+
cd ~/crs_ros_bridge_ws/ # Navigate to the workspace root
54+
```
55+
- Clone the bridge repository
56+
```
57+
cd ~/crs_ros_bridge_ws/
58+
git clone https://github.com/swri-robotics/crs_ros_bridge_ws.git
59+
```
60+
- Download source dependencies
61+
```
62+
cd ~/crs_ros_bridge_ws/
63+
wstool init src src/crs_ros_bridge_ws/crs.rosinstall
64+
```
65+
- Downlad debian dependences
66+
```
67+
rosdep install --from-path src --ignore-src -ry
68+
```
69+
> You'll need admin priviledges to install
70+
- Overlay CRS ROS1 and ROS2 workspaces
71+
**!!!It is assumed that your ROS2 workspace is located in the `~/crs_ws/` directory**
72+
- Source the workspaces in the following order
73+
```
74+
source ~/crs_ros1_ws/devel/setup.bash
75+
source ~/crs_ws/install/local_setup.bash
76+
colcon build --symlink-install
77+
```

0 commit comments

Comments
 (0)