isaac_ros_hawk
Source code on GitHub.
Overview
A camera provides images using an electronic image sensor as part of perception for understanding of the robot and its environment. A stereo camera provides images from two slightly different perspectives which can be used to compute precise depth.
The isaac_ros_hawk
driver provides support for the LI-AR0234CS-STEREO-GMSL2-30
stereo camera with IMU. This provides an wide-angle (>120 degree) field of view with two global shutter HD (1920x1200) color imagers. Global shutter enables light sensing in the imager for all pixels simultaneously, reducing motion artifacts caused by rolling-shutter imagers which capture a row of pixels at a time. The stereo imagers are time-synchronized to capture simultaneously allowing for computation of precise depth. This design has the benefit that the same imager can be used to provide depth and color information for AI-based perception functions, where other designs have parallax errors as depth and color come from different sensors reducing accuracy for AI-based perception. LI-AR0234CS-STEREO-GMSL2-30
is jointly developed with Leopard Imaging and NVIDIA.
Quickstart
Set Up Nova
Verify if Nova Orin software is the latest version by comparing the installed package with the candidate:
$ apt policy nova-orin-init nova-orin-init: Installed: 1.3.2+b3 Candidate: 1.3.2+b3 Version table: *** 1.3.2+b3 600 600 https://isaac.download.nvidia.com/nova-init jammy/main arm64 Packages
If the installed version is lower than the candidate, follow the nova init upgrade process here. Otherwise proceed to the next step.
Verify that sensors are functioning by running:
nova_preflight_checker
It is expected for all tests to pass. Refer to the Nova PFC documentation for more details.
Set Up Development Environment
Set up your development environment by following the instructions in getting started.
Clone
isaac_ros_common
under${ISAAC_ROS_WS}/src
.cd ${ISAAC_ROS_WS}/src && \ git clone -b release-3.2 https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_common.git isaac_ros_common
(Optional) Install dependencies for any sensors you want to use by following the sensor-specific guides.
Note
We strongly recommend installing all sensor dependencies before starting any quickstarts. Some sensor dependencies require restarting the Isaac ROS Dev container during installation, which will interrupt the quickstart process.
Create a file called
.isaac_ros_dev-dockerargs
with the following:cd ${ISAAC_ROS_WS}/src/isaac_ros_common/scripts echo -e "-v /etc/nova/:/etc/nova/" > .isaac_ros_dev-dockerargs
Build isaac_ros_hawk
Launch the Docker container using the
run_dev.sh
script:cd ${ISAAC_ROS_WS}/src/isaac_ros_common && \ ./scripts/run_dev.sh
Install the prebuilt Debian package:
sudo apt-get update
sudo apt-get install -y ros-humble-isaac-ros-hawk
Clone this repository under
${ISAAC_ROS_WS}/src
:cd ${ISAAC_ROS_WS}/src && \ git clone -b release-3.2 https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_nova.git isaac_ros_nova
Launch the Docker container using the
run_dev.sh
script:cd ${ISAAC_ROS_WS}/src/isaac_ros_common && \ ./scripts/run_dev.sh
Use
rosdep
to install the package’s dependencies:sudo apt-get update
rosdep update && rosdep install --from-paths ${ISAAC_ROS_WS}/src/isaac_ros_nova/isaac_ros_hawk --ignore-src -y
Build the package from source:
cd ${ISAAC_ROS_WS} && \ colcon build --symlink-install --packages-up-to isaac_ros_hawk --base-paths ${ISAAC_ROS_WS}/src/isaac_ros_nova/isaac_ros_hawk
Source the ROS workspace:
Note
Make sure to repeat this step in every terminal created inside the Docker container.
Because this package was built from source, the enclosing workspace must be sourced for ROS to be able to find the package’s contents.
source install/setup.bash
Run Launch File
Continuing inside the Docker container, run the following launch file to spin up a demo of this package:
cd ${ISAAC_ROS_WS} && \ ros2 launch isaac_ros_hawk hawk.launch.py
Visualize Results
Open a new terminal inside the Docker container:
cd ${ISAAC_ROS_WS}/src/isaac_ros_common && \ ./scripts/run_dev.sh
Visualize and validate the output of the package using
rviz
:
API
Usage
ros2 launch isaac_ros_hawk hawk.launch.py target_container:=<Target Container> namespace:=<Namespace> module_id:=<Index specifying the camera module to use.> mode:=<Supported Resolution mode from the camera. For example, 0: 1920 x 1200> fsync_type:=<Specifies what kind of Frame Synchronization to use. Supported values are: 0 for internal, 1 for external.> wide_fov:=<Specifies FoV mode. Supported values are: 0 normal, 1 for wide.> nvpps_dev_file:=<NVPPS Dev Name> use_time_since_epoch:=<Use Time Since Epoch>
HawkNode
ROS Parameters
ROS Parameter |
Type |
Default |
Description |
---|---|---|---|
|
|
|
The video device index E.g. |
|
|
|
The camera module index in the device tree when there is more than one of the same camera module connected |
|
|
|
The resolution mode supported by the camera sensor and driver. |
|
|
|
Specifies what kind of Frame Synchronization to use, supported values are 0 for internal and 1 for external. For e3653 boards (carter 2.3) choose 0, for p3762 boards (carter 2.4) choose 1 |
|
|
|
0 for Monocular type camera. |
|
|
|
The frame name associated with the origin of the camera body. |
|
|
|
The frame name associated with the left imager inside camera body. |
|
|
|
The frame name associated with the right imager inside camera body. |
|
|
N/A |
Optional URL of a camera info |
|
|
N/A |
Optional URL of a camera info |
ROS Topics Subscribed
ROS Topic |
Interface |
Description |
---|---|---|
|
Timestamp correlation data. |
ROS Topics Published
ROS Topic |
Interface |
Description |
---|---|---|
|
The left image of a stereo pair. |
|
|
The left camera model. |
|
|
The right image of a stereo pair. |
|
|
The right camera model. |
Troubleshooting
Restarting the Argus Daemon
Argus is a library used by Isaac ROS on NVIDIA Jetson systems. It runs a daemon independent of ROS in a separate process to manage the camera. If you are having any sort of trouble with the camera, one of the first things you should try is restarting this daemon. From outside the container you can run:
sudo systemctl restart nvargus-daemon.service
This can resolve (Argus) Error EndOfFile
and Failed to create capture session
errors, among others.
Generally these errors are caused by improper shutdown of a camera application.
Re-probing camera modules
If you are still having trouble with the camera, for example if restarting the daemon does not resolve a Failed to create capture session
error, you can try re-probing the camera modules.
This can be done from outside the container by running the following
sudo modprobe -r cam_cdi_tsc
sudo modprobe -r nv_hawk_owl
sudo modprobe nv_hawk_owl
sudo modprobe cam_cdi_tsc
sudo systemctl restart nvargus-daemon.service
If you want to restart the daemon from a script and from within the container, there is service installed with nova-init that will listen on a socket to restart the daemon. You can use the following python snippet in your launch files or elsewhere to achieve this:
import socket
s=socket.socket(socket.AF_UNIX)
s.connect('/tmp/argus_restart_socket')
s.send(b'RESTART_SERVICE'); s.close()