Skip to content

About

Control window for e-con cameras in NVIDIA Isaac Sim: ROS 2 publishing, simulated RAW, rectified stereo, pseudo depth and the IR projector.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

e-con Camera Control — Isaac Sim

One control window for every e-con camera in an Isaac Sim stage. It finds the cameras by themselves, gives each one its own ROS 2 namespace, and on top of the ground-truth images the camera assets publish, it simulates what the real sensors deliver:

  • RAW sensor images, with gain and noise modelled on the real sensors
  • rectified IR stereo pairs, with camera_info ready for stereo matching
  • colour images from the RGB sensor's RAW through a simple ISP
  • pseudo depth: Isaac Sim's simulated stereo depth, with the camera's own geometry
  • the IR dot projector, switched with one checkbox
Extension Role
econ.camera.control Adds the e-con Cameras menu and its control window.

Supported cameras:

Camera Asset
e-con NetraVis6L_USB NetraVis-IsaacSim-Camera

The camera assets work on their own; this extension adds the window and the simulated sensor outputs. Further e-con cameras will be supported by the same extension.

Requirements

  • NVIDIA Isaac Sim 6.0.1 or 6.2.0, on Linux.
  • An e-con camera asset installed, e.g. the NetraVis6L_USB.
  • For ROS 2 publishing: nothing to install. Isaac Sim ships the ROS 2 libraries; start it with the launcher below. To look at the topics you need ROS 2 (Humble or Jazzy) on the machine you watch from.

Installation

Clone this repository, then run the installer from inside it.

git clone https://github.com/econsystems/IsaacSim-Camera-Control.git
cd IsaacSim-Camera-Control

Linux

./build.sh

Windows

build.bat
  • Auto-detects Isaac Sim. If several installs are found, it lists them and asks which one to use; if none is found, it asks for the folder.
  • Installs the extension into extsUser inside the Isaac Sim folder — self-contained, so the cloned folder can be deleted afterwards — and loads it on every launch.
  • Remove it with the uninstaller, not by deleting files manually.

To target a specific Isaac Sim install and skip auto-detection, set ISAACSIM_PATH:

ISAACSIM_PATH=/path/to/isaacsim ./build.sh

Launching Isaac Sim with ROS 2

Isaac Sim's ROS 2 bridge needs the ROS 2 libraries on the library path before Isaac Sim starts. Launch it with:

./scripts/isaac-sim-with-ros.sh                            # domain 0
ROS_DOMAIN_ID=7 ./scripts/isaac-sim-with-ros.sh             # another ROS domain
ROS_DISTRO=humble ./scripts/isaac-sim-with-ros.sh           # match a Humble machine
ISAACSIM_PATH=/path/to/isaacsim ./scripts/isaac-sim-with-ros.sh

It uses the ROS 2 libraries Isaac Sim ships, so nothing has to be installed. If several Isaac Sim installs are found, it asks which one to start and refuses one without the extension. Without it, everything works except publishing, and the window's status line says why.

Do not source a system ROS 2 into the shell that starts Isaac Sim (its Python differs from Isaac Sim's); source it only in the shell you run ros2 from.

Usage

  1. Launch Isaac Sim (see above) and add a camera, e.g. Create → Sensors → Camera and Depth Sensors → e-con → NetraVis6L_USB.
  2. Open e-con Cameras → Control Window. Every e-con camera in the stage is listed, one block per camera; Refresh list picks up cameras added later.

The window

At the top, for every camera:

Control What it does
Domain ID ROS 2 domain the topics are published on (defaults to ROS_DOMAIN_ID).
Enable ROS + Publish GT Publishes every camera's ground-truth topics (image, camera_info, depth, IMU, TF) and starts Play.
Disable ROS Stops everything: GT, every computed stream, IMU and TF.
Save to Folder for saved frames (default ~/econ_captures).
Exposure s / ISO The scene's exposure, shared by every camera. 0 keeps what the scene has.

Per camera:

Control What it does
namespace (shown) The camera's ROS 2 namespace, assigned automatically: a second camera of the same model is numbered (NetraVis6L_USB_01).
IR dot projector Switches the projector (see IR dot projector).

Per sensor group (the IR stereo pair, the RGB camera):

Control What it does
Gain Sensor gain; RAW noise follows it. The IR pair shares one slider.
Save RAW Saves one frame of the sensor RAW (both eyes of a pair at the same instant).
tick boxes The outputs to work with: pseudo depth, IR rectified for the IR pair; colour for the RGB camera.
Preview Shows the ticked outputs live in their own window. Publishes nothing.
Save Saves one frame of the ticked outputs.
Publish / Stop publishing Publishes the ticked outputs of this camera over ROS 2, and stops them.

IR dot projector

The camera's dot projector gives the IR stereo pair texture to match on.

  • On: both emitters light up, and every other light in the stage is held at intensity 0. Isaac Sim has no infrared band, so any scene light reaches the IR cameras and washes the dots out, and pseudo depth then finds nothing to match. Your lights keep their own values: the hold is a temporary override that is never saved.
  • Off: the projector goes dark and every light is back exactly as you had it, including any light you changed in the meantime.

Keep it on for stereo and pseudo depth, and off for RGB: the dots land in the RGB image too, and the scene is lit only by the projector while it is on.

Try it

exts/econ.camera.control/cameras/NetraVis6L_USB/scripts/wall_and_box.py places a plain grey wall and a 0.3 m box in front of the camera:

  1. Add a NetraVis6L_USB and open the control window.
  2. Window → Script Editor → File → Open wall_and_box.py → Run. Change WALL_M at the top and run again to move the wall.
  3. Tick IR dot projector. Looking through IR_Right (viewport camera menu → Cameras → IR_Right, viewport lighting Stage Lights), the dot pattern is on the wall and the box.
  4. Tick pseudo depth and IR rectified in the IR group, then Preview or Publish.
  5. Untick IR dot projector, tick colour in the RGB group and Preview it.

ROS 2 topics

Topics are /<namespace>/<sensor>/<output>; for one NetraVis6L_USB:

Topic Type From
/NetraVis6L_USB/ir_left/image, /ir_right/image, /rgb/image + camera_info Image, CameraInfo the camera asset (GT)
/NetraVis6L_USB/depth/image + camera_info Image (32FC1, metres) the camera asset (GT)
/NetraVis6L_USB/imu, /NetraVis6L_USB/tf Imu, TFMessage the camera asset
/NetraVis6L_USB/ir_left/rectified/image + camera_info Image (32FC1, sensor code values) this extension
/NetraVis6L_USB/ir_right/rectified/image + camera_info Image (32FC1); P[3] = −fx × baseline this extension
/NetraVis6L_USB/pseudo_depth/image + camera_info Image (32FC1, metres; 0 = no depth) this extension
/NetraVis6L_USB/rgb/isp/image Image (rgb8) this extension

Each computed image has its camera_info beside it with the same time stamp, so stereo_image_proc, image_transport and RViz pair them. A second camera repeats the set under its own namespace. The window lists the topics of each camera and whether they are publishing.

Checking the topics from another machine

On the machine you watch from (ROS 2 Humble or Jazzy), with Isaac Sim publishing:

source /opt/ros/humble/setup.bash             # or jazzy
export ROS_DOMAIN_ID=0                        # the window's Domain ID
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp

# images are a few MB each: raise the receive buffer once per boot (on both machines),
# or the images never arrive while camera_info, imu and tf do
sudo sysctl -w net.core.rmem_max=16777216
sudo sysctl -w net.core.wmem_max=16777216

ros2 topic list | grep NetraVis6L_USB
ros2 topic hz /NetraVis6L_USB/ir_left/rectified/image
ros2 topic echo --once /NetraVis6L_USB/ir_right/rectified/camera_info
ros2 topic echo --once --no-arr /NetraVis6L_USB/rgb/isp/image
ros2 run rqt_image_view rqt_image_view        # pick a topic to see the picture
rviz2                                         # Add → By topic → Image / Camera

Or check every topic of a camera at once:

python3 scripts/check_ros_topics.py                         # NetraVis6L_USB, 10 s
python3 scripts/check_ros_topics.py NetraVis6L_USB_01 20    # another camera, 20 s

It prints, per topic, the messages received, the rate, and for images the size, encoding and whether there is a picture in it; for camera_info the size, fx, cx and Tx.

Nothing arriving at all: the domain ID, RMW_IMPLEMENTATION or the network (both machines need to reach each other with multicast allowed). Only the images missing: the receive buffer above. A wired link carries images far better than Wi-Fi.

Saved frames

Save RAW and Save write one frame per sensor to <Save to>/<timestamp>/<namespace>/<sensor>/:

File Content
<time>_raw.raw Sensor RAW, headerless uint16 little-endian, row-major, packed like the real camera's output
<time>_rectified.png Rectified IR, 16-bit grayscale (code value = pixel value >> 6)
<time>_isp.png Colour, 8-bit RGB
<time>_capture.json How to read the files: size, Bayer order or mono, bit depth, packing, black level, gain, exposure, lens

The IR sensors are monochrome: their RAW is not demosaiced. The RGB RAW is a Bayer mosaic in the real sensor's order; capture.json names it.

Camera folders

Each supported camera has a folder in the extension, exts/econ.camera.control/cameras/<model>/, with what the extension needs for that model and its test scripts. The extension recognises a supported camera by its model and sets up its sensor simulation by itself; there is nothing to load or configure.

Uninstallation

Run the uninstaller from inside this repository:

./uninstall.sh                                   # Linux
ISAACSIM_PATH=/path/to/isaacsim ./uninstall.sh   # a specific install
uninstall.bat                                    :: Windows

It removes the extension from extsUser and from Isaac Sim's app files. Relaunch Isaac Sim.

Notes

  • Ground truth is untouched. The simulated sensors run on their own runtime copies of the cameras, so the camera asset's GT topics stay exactly what the renderer produces, and nothing of the simulation is saved into your stage.
  • Colour comes from a simple ISP on the RGB sensor's RAW: demosaic (half resolution, one pixel per 2x2 Bayer cell), colour matrix, white balance and gamma, with no denoise, sharpening or tone mapping. It is there to give a usable colour image, not to stand in for a camera's ISP. To use another ISP:
    • Your own: take the RAW (Save RAW, or the sensor files described above) through your ISP, or run an ISP program in NVIDIA's format inside Isaac Sim: launch with ECON_ISP=nvidia ECON_ISP_PROGRAM=/path/to/program.ispprg.
    • NVIDIA's example: ECON_ISP=nvidia alone runs the ISP program Isaac Sim 6.2 ships. It is tuned for another sensor, so its colours differ (a grey wall comes out olive).
  • Cost. Each computed output renders its camera once more. Tick only what you need, and use Save for single frames rather than leaving a stream running.
  • Pseudo depth needs texture: switch the projector on, or use textured surfaces.

License

MIT — see LICENSE.

About

Control window for e-con cameras in NVIDIA Isaac Sim: ROS 2 publishing, simulated RAW, rectified stereo, pseudo depth and the IR projector.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages