Skip to content

Software

libcaer_driver

By ROS event camera support, from github.com/ros-event-camera/libcaer_driver (opens in a new tab)

  • Perception
  • Driver or SDK
  • Apache-2.0

A ROS 2 driver that streams events and frames from Inilabs event-based cameras such as Davis and DvXplorer, using the libcaer library. It is an unofficial successor to the ROS 1 driver.

Facts

GitHub stars
12read on 28 Nov 2026
Last update
19 Nov 2026Newest commit on master
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate
Hardware it needs, as the project states it
Event cameras from Inilabs (Davis 346, Davis 240C, DvXplorer, DvXplorer Micro).

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit ed923a2 (opens in a new tab), on 21 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Supports Davis 346, Davis 240C, DvXplorer and DvXplorer Micro cameras, tested by the author.
  • Offers compressed (libcaer_cmp, default) or uncompressed event encoding, configurable through parameters.
  • Provides auto exposure for APS frames, with adjustable illumination target and hysteresis.
  • Supports synchronized operation of two cameras via a master/slave sync cable.
  • Includes launch files for recording events with ROS 2 composable nodes, on Humble and on Jazzy and newer.
  • Timestamps for IMU, image and event messages are documented against a sensor clock and host clock.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 19 Nov 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit ed923a2

Robotheca read the repository at two versions: the summary at a5ea017 and the facts and the README at ed923a2 (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by ROS event camera support, at commit ed923a2, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

libcaer_driver

A ROS2 driver for event based cameras using Inilab's Libcaer (Davis, DvXplorer). This driver is not written or supported by Inilabs.

DO NOT UPDATE YOUR DEVICE FIRMWARE TO v1.0 IF YOU WANT TO USE THIS DRIVER! The camera will no longer work with libcaer after this irreversible update, see this announcement (opens in a new tab).

banner image

This driver is intended to be a successor to the University of Zuerich ROS1 driver (opens in a new tab). The ROS2 port addresses some deficiencies of the ROS1 driver, in particular the performance problems due to the message format. Usage of the event_camera_msgs (opens in a new tab) format allows for higher bandwidth and more efficient storage.

The events can be decoded and displayed using the following ROS2 packages:

Supported platforms

Tested with the following hardware:

Continuous integration testing covers ROS2 versions Humble and later.

Note: lead developer no longer has access to hardware for testing or developing. Pull requests with fixes are greatly appreciated!

Installation
From packages
sudo apt install ros-${ROS_DISTRO}-libcaer-driver

See the next section for additional updates to the udev files etc.

From source

The build instructions follow the standard procedure for ROS2. Set the following shell variables:

repo=libcaer_driver
url=https://github.com/ros-event-camera/${repo}.git

and follow the build instructions here (opens in a new tab)

Make sure to source your workspace's install/setup.bash afterwards.

This driver provides its own version of libcaer (via the libcaer_vendor package), but you still need to copy the udev file into place and modify the group permissions:

sudo cp src/libcaer/lib/udev/rules.d/65-inivation.rules /etc/udev/rules.d/
sudo usermod -aG video ${USER}
sudo usermod -aG plugdev ${USER}
sudo udevadm trigger
sudo service udev restart

Now you need to log out and back in to the host in order for the updated group permissions to take hold.

Driver Features

Driver parameters (besides biases and other device-specific parameters):

  • auto_exposure_enabled: (defaults to False) enables/disables driver-provided auto exposure for APS frames.
  • auto_exposure_illumination: (0-255, defaults to 127) target brightness for APS frame exposure
  • auto_exposure_hysteresis: (0-0.5, defaults to 0.0625) relative tolerance for brightness error before adjusting exposure time.
  • camera_frame_id: the ROS frame id to use in the header of event and image messages
  • camerainfo_url: location of the ROS camera calibration file.
  • device_type: "davis", "dvxplorer", ...
  • device_id: the libcaer device id (defaults to 1).
  • event_message_time_threshold: (in seconds) minimum time span of events to be aggregated in one ROS event message before message is sent. Defaults to 1ms.
  • event_message_size_threshold: (in bytes) minimum size of events (in bytes) to be aggregated in one ROS event message before message is sent. Defaults to 1MB.
  • event_send_queue_size: outgoing ROS message send queue size (defaults to 1000 messages).
  • encoding: libcaer_cmp(compressed, default) or libcaer (uncompressed). The CPU usage for encoding is very small, and can actually reduce the CPU load on the driver because of the reduction of memory access when sending the message. Use of uncompressed libcaer is strongly discouraged. Only use libcaer encoding if low event rates are expected, and decompression latency is an issue.
  • imu_frame_id: the ROS frame id to use in the header of imu messages
  • imu_send_queue_size: (defaults to 10) max number of ROS messages to be buffered in send queue.
  • master: (defaults to True) whether the device is acting as synchronization master.
  • serial: specifies serial number of camera to open (useful if you have multiple cameras connected). You can learn the serial number via lsusb -v -d 152a: | grep iSerial, or just start the driver with the serial number left blank, and look at the console log.
  • statistics_print_interval: time in seconds between statistics printouts.o
  • time_reset_delay: integer time in seconds to wait before hardware resetting the sensor time. Defaults to 2.
How to use:

Use the standard ROS launch procedure to start the driver, for instance:

ros2 launch libcaer_driver driver_node.launch.py device_type:=davis

Edit driver_node.launch.py to set various parameters, or use rqt_reconfigure to modify the parameters on the fly.

Recording on ROS2 Humble and older

For efficient recording of the events you need to run the driver and the recorder in the same address space using ROS2 composable nodes. For this you will need to install the composable recorder (opens in a new tab) into your workspace as well (see below). There are some example launch files provided for launching the combined driver/recorder:

ros2 launch libcaer_driver recording_dvxplorer_composition.launch.py # (run as composable node)

Once the combined driver/record is running, start the recording like so:

ros2 service call /start_recording std_srvs/srv/Trigger

To stop the recording you have to kill (Ctrl-C) the recording driver.

Recording on ROS2 Jazzy and newer

With Jazzy the rosbag framework got upgraded to provide composable recording. First launch the driver as a composable node, then load the recorder into the same container with the start_recording.launch.py script and unload it with stop_recording.py:

ros2 launch libcaer_driver driver_composition.launch.py
ros2 launch libcaer_driver start_recording.launch.py
ros2 run libcaer_driver stop_recording.py
Visualizing the events

To visualize the events, run a renderer node from the event_camera_renderer (opens in a new tab) package:

ros2 launch event_camera_renderer renderer.launch.py

The renderer node publishes an image that can be visualized with e.g. rqt_image_view

Clock synchronized camera operation
  1. Connect the output sync of the master to the input sync of the slave
  2. When launching the driver, first launch the slave camera, second launch the master. Pass the corresonding parameter master to both drivers, set to True for the master, set to False for the slave.
  3. Check the time synchronization with the sync_test tool from the event_camera_tools package. The base-stamp shift value of both cameras should be small, and the two values should agree to within less than 1ms when both sensors are non-idle, i.e. produce events at a reasonable rate.
Performance comparison to the ROS1 driver

Here are some approximate performance numbers on a 16 thread (8-core) AMD Ryzen 7480h laptop with max clock speed of 2.9GHz. The below numbers were obtained with a DvXplorer (bias sensitivity set to 4, sensor illuminated uniformly with square wave at 600Hz, delivering about 130-145 MeVs, 1150MB/s). Note that at this data rate, the decoding of the USB packets by libcaer saturates the CPU, so some data is lost before it even reaches the driver. ROS event_message_time_threshold was set to 1ms.

ROSconfigurationencodingCPU loadevent rate (*)note
ROS2driver no subscriberlibcaer_cmp100%139 Mev/stopic not publ., libcaer saturates CPU
ROS2driver + recorder (composable)libcaer_cmp188%136 Mev/sno message transport involved
ROS2driver + recorder (nodes)libcaer_cmp172%+25%139 Mev/sFASTRTPS rmw inter-process comm.
ROS2driver + recorder (composable)libcaer253%129 Mev/sno message transport involved
ROS2driver + recorder (nodes)libcaer156%+156%119 Mev/sFASTRTPS rmw inter-process comm.
ROS1driver no subscriberdvs_msgs200%28 Mev/sROS1 libcaer + driver saturate CPU (**)
ROS1driver + recorder (nodelet)dvs_msgs250%26 Mev/sno message transport involved

Notes:

(*) event rates are incoming event rates. (**) the ROS1 driver marshals a ROS message even if there are no subscribers

Storage requirements:

  • ROS2 using libcaer_cmp encoding: about 0.615 bytes/event (uniform flicker) - 5.4 bytes/event (random noise)
  • ROS2 using libcaer encoding: 8 bytes/event
  • ROS1: 13 bytes/event
About time stamps

The libcaer event cameras have their own clock which will here be called camera clock. When the driver starts up, it sends a command to the camera to reset the camera clock to zero, but at the same time the driver also records the host time (ROS system clock). Subsequently it always adds that initial host time to the camera clock. This sum of host time and camera clock will be referred to as sensor time. Note that although initially sensor time and host time coincide, they can drift arbitrarily far away from each other due to clock skew.

The time stamps in the different messages refer to different clocks as follows:

  • IMU message header.stamp: sensor time
  • APS image message header.stamp: sensor time
  • EventPacket message:
    • header.stamp: host time (host arrival time of first libcaer packet that was used to form the ROS message)
    • time_base: sensor time (sensor time of first event in ROS message)
    • event time stamps: sensor time

Note that the header.stamp for EventPacket messages follows a different(!) convention than the header stamps for IMU and image messages. The reason is that time_base of the EventPacket message already has the sensor time, so header.stamp is used to capture the actual host time. This permits estimation of the clock drift between sensor time and host time, which in turn allows synchronization with data (captured from other sensors) that refers to host time only.

In summary, IMU, image, and individual event times all refer sensor time and can be directly compared to each other. The header stamp in the event packets however does not refer to sensor time.

License

This software is issued under the Apache License Version 2.0.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.