- Open the
mex-wrapper
sub-folder in Matlab - Add the
matlab_api
folder and its sub-folders to the Matlab path - Open the
example_model.slx
Simulink model
-
Run
compileKortexMex.m
-
Edit both
kortex
andkObjTrajectoryFeeder
Simulink objects with Kinova Robot information -
In Simulink, click on
Run
in the Simulate tab
-
Edit the
rosTargetPreferences.m
file with Jetson parameters -
Run
configKortexModelROS2.m
-
Edit both
kortex
andkObjTrajectoryFeeder
Simulink objects with Kinova Robot information -
Open the Robot tab in Simulink
-
Select the ROS2 framework
-
Click on
Build & Run
The Build & Run
will additionally do the following:
- Transfer the generated ROS2 package directly on the Jetson target
- Compile on the Jetson target (using Colcon tools)
- Run the compiled ROS2 package on the Jetson Target