Configure NVIDIA Jetson Board for Object Detection and Motion Planning
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:
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.
libopencv-devversion 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
$ 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.
resourcesfolder contains a ZIP file, opencv_node.zip. Extract the content of the ZIP file and copy the
opencv_nodefolder to the
srcfolder 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
srcfolder. You can host the
opencv_node.zipto any file-hosting platform and generate a sharable link.
Execute this command to build the
catkin_make --cmake-args -DCONAN_TARGET_PLATFORM=jetson
Once the build is completed, execute the command ‘source devel/setup.bash’ from the
catkinworkspace folder that you created in Step3.