Configure NVIDIA Jetson Board for Object Detection and Motion Planning
Note
The workflow mentioned in this topic is tested on NVIDIA® Jetson™ Nano™, NVIDIA Jetson TX2 and NVIDIA Jetson AGX Xavier™ compute boards, having Ubuntu® 18.04 with ROS Melodic and OpenCV 3.2.
This topic is part of the overall workflow described in Object Detection and Motion Planning Application with Onboard Deployment.
To configure NVIDIA Jetson board for object detection and motion planning:
Ensure that you configure the NVIDIA Jetson compute board as per the instructions provided on the respective web pages - NVIDIA Jetson Nano, NVIDIA Jetson TX2 or NVIDIA Jetson AGX Xavier.
Perform Ubuntu Install of ROS Melodic on the Jetson board.
Install ROS packages and dependencies for Kinova® Gen3 robot, as described in Install ROS Packages and Dependencies for ROS on External Computer, on the Jetson board. Because you are using the vision module to detect the object, the ROS packages for vision module also need to be installed.
Check the
libopencv-dev
version by executing the following command in the terminal:$ apt list -a libopencv-dev
If the installed version is greater than 4.0, then install the version lower than 4.0. For example, execute the following command in the terminal to install
libopencv-dev
version 3.2.0:$ sudo apt install libopencv-dev=3.2.0+dfsg-4ubuntu0.1
Execute Step 4 again and ensure that the installed version has been modified according to the Step 5.
The necessary source files for the OpenCV node, responsible to detect the object are included in the support package. Execute the following command in the MATLAB® command window and navigate to the folder location specified by the command output.
>> fullfile(codertarget.robotmanipulator.internal.getSpPkgRootDir,'resources')
The
resources
folder contains a ZIP file, opencv_node.zip. Extract the content of the ZIP file and copy theopencv_node
folder to thesrc
folder of the catkin workspace folder that you created in Step 3.If you only have the access of Jetson board via SSH terminal, you can use wget command to download the ZIP archive and then use unzip command to extract the content into the
src
folder. You can host theopencv_node.zip
to any file-hosting platform and generate a sharable link.Execute this command to build the
opencv
node.catkin_make --cmake-args -DCONAN_TARGET_PLATFORM=jetson
Once the build is completed, execute the command ‘source devel/setup.bash’ from the
catkin
workspace folder that you created in Step3.
See Also
Object Detection and Motion Planning Application with Onboard Deployment