You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ The following individuals have made contributions to CORC:
61
61
- Yue Wen
62
62
- Tim Haswell
63
63
- Xinliang Guo
64
+
- Benjamin von Snarski
64
65
65
66
Please contact fong.j[at]unimelb.edu.au with questions or suggestions for continuing development, or if you wish to be more involved in the planning/organisation of CORC.
Minimal instructions to compile and run a CORC application as a ROS2 node able to publish the robot state.
4
+
5
+
This page assumes you have an Ubuntu system with ROS2 Humble installed (may work with other ROS2 versions but not tested). See [here](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html) for ROS2 installation instructions.
6
+
Testing the application also assumes you have an ExoMotus X2 Exoskeleton.
7
+
8
+
9
+
> Note : these instructions are for ROS2. See [here](AdvancedSimulationAndHardwareTesting.md) for a ROS1 example.
10
+
11
+
## Compilation
12
+
13
+
14
+
```bash
15
+
$ source /opt/ros/humble/setup.bash
16
+
```
17
+
18
+
In CORC root directory, rename ros2 package configuration file
19
+
```bash
20
+
$ mv package.ros2.xml package.xml
21
+
```
22
+
23
+
24
+
Edit the CMAKEFileList.txt to set ROS2 option and to select a ROS2 state machine:
25
+
26
+
```
27
+
...
28
+
...
29
+
#set (STATE_MACHINE_NAME "ExoTestMachine")
30
+
#set (STATE_MACHINE_NAME "M1DemoMachine")
31
+
#set (STATE_MACHINE_NAME "M1DemoMachineROS")
32
+
#set (STATE_MACHINE_NAME "M2DemoMachine")
33
+
#set (STATE_MACHINE_NAME "M3DemoMachine")
34
+
#set (STATE_MACHINE_NAME "X2DemoMachine")
35
+
set (STATE_MACHINE_NAME "X2ROS2DemoMachine")
36
+
#set (STATE_MACHINE_NAME "LoggingDevice")
37
+
38
+
# Use this if your state machine code folder is not in CORC 'src/apps/' folder.
39
+
# Can be a relative or absolute path.
40
+
#set (STATE_MACHINE_PATH "../")
41
+
42
+
# Comment to use actual hardware, uncomment for a nor robot (virtual) app
43
+
set(NO_ROBOT OFF)
44
+
45
+
# ROS Flag: set to 0 for a no ROS stateMachine, 1 for ROS 1 (use catkin build) and 2 for ROS2 (use colcon build)
46
+
# Remember to rename select appropriate package.xml too
47
+
set(ROS 2)
48
+
...
49
+
...
50
+
```
51
+
52
+
53
+
From the **CANOpenController parent folder**, compile the package:
54
+
```bash
55
+
$ colcon build
56
+
$ source install/setup.bash
57
+
```
58
+
59
+
60
+
## Run the node
61
+
```bash
62
+
$ ros2 run CORC X2ROS2DemoMachine_APP
63
+
```
64
+
65
+
Here CORC is the package name and the CORC app name is the executable name.
66
+
67
+
See the content of the `src/apps/X2ROS2DemoMachine` folder to see how to interact with ROS2 from within CORC.
0 commit comments