Skip to content

Software

event_camera_tools

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

  • Perception
  • Tool
  • Apache-2.0

ROS 2 command-line tools for viewing, measuring, and converting event camera messages recorded or streamed from event sensors.

Facts

GitHub stars
10read on 28 Nov 2026
Last update
19 Nov 2026Newest commit on master
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate

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 76b454d (opens in a new tab), on 21 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Echoes event_camera_msgs streams in real time, optionally reading from a bag file.
  • Reports message rate, drops, delay, drift, jitter, event rate, and ON/OFF and trigger ratios for a topic.
  • Compares timing between two event camera topics to check synchronization.
  • Measures the delay between an external trigger event and a frame-based camera's image timestamp.
  • Converts bag files to and from raw files, and produces image frame sequences from bags.
  • Plots events, computes per-pixel event counts, and counts events over fixed intervals.

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 76b454d

Robotheca read the repository at two versions: the summary at bfd000a and the facts and the README at 76b454d (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 76b454d, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

event_camera_tools

This repository holds ROS tools for displaying and converting event_camera_msgs (opens in a new tab). These messages are produced by the metavision_driver (opens in a new tab) and the libcaer_driver (opens in a new tab). For converting legacy dvs_msgs (opens in a new tab) and prophesee_event_msgs (opens in a new tab) messages, see the event_camera_legacy_tools (opens in a new tab) repository.

Supported platforms

NOTE: ROS1 support has been discontinued but the code has been left in place and may still compile. ROS2 is supported for ROS2 Humble and later distros.

How to build

Set the following shell variables:

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

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

Tools
Real-time monitoring tools
  • ros2 run event_camera_tools echo [-b <bag>] [-t (only triggers)] [-n (no header printed)] <topic>

    Displays messages in event_camera_msgs format, optionally from a bag file. Example output:

  -------------------------------
  res:  640  height:  480 enc: evt3
  header stamp: 1664227781775114816
  time base:        0
  seqno:   129213
  ---
  6851488000 edge: 1  id:  6
  6851510000  390  223 1
  6851520000   33  326 0
  ...
  • ros2 run event_camera_tools perf <topic>

    Sample output:

    msgs:   219.48/s drp:  0 del: 13.72ms drft:  0.0297ms jit:  0.3296ms ev:   0.0823 M/s %ON:  46 tr:  1758.38 1/s %UP:  50
    msgs:   249.01/s drp:  0 del:  4.35ms drft: -0.0031ms jit:  0.2503ms ev:   0.8497 M/s %ON:  52 tr:  1999.56 1/s %UP:  49
    

    The meaning of the fields is as follows:

    • msgs message rate per seconds
    • drp number of drops per second (skip in sequence numbers)
    • del delay: average time difference between message header stamp and arrival time. This includes the delay due to the driver aggregating messages.
    • drft accumulated (from start of "perf") drift between message header stamp and sensor-provided time.
    • jit measured jitter of ROS time stamps vs sensor time stamps.
    • ev event rate in millions/sec
    • %ON ratio of ON events to total (ON + OFF) events
    • tr rate of trigger messages
    • %UP ratio of UP trigger edges to total (UP + DOWN)
  • ros2 run event_camera_tools sync_test <cam_0_event_topic> <cam_1_event_topic>

    The output gives the average sensor time difference and how many samples where counted:

    avg sensor diff:  0.00846s, count:   360
    avg sensor diff:  0.00377s, count:   466
    ...
    
  • ros2 run event_camera_tools trigger_delay -t <camera_image_topic> [-d (use down trigger edge)] <event_topic>

    Use this tool to verify synchronization setup when the sync pulse from a frame based camera is connected to an event camera. The tool compares the time stamp of the trigger event with that of the image frame, and gives the time by which the trigger event is delayed with respect to the frame. This time is usually negative, meaning the trigger event occurs before the frame based camera driver puts a header stamp on the image. A typical output will look like this:

    [INFO] [1763569527.811228122] [trigger_delay]: frame rate:   1.000 Hz, trigger rate:   1.000 Hz, trigger delay: -3.531 ms +/- 0.497 ms
    [INFO] [1763569528.811002310] [trigger_delay]: frame rate:   1.000 Hz, trigger rate:   1.000 Hz, trigger delay: -3.868 ms +/- 0.418 ms
    
  • ros2 run event_camera_tools event_rate [-b bag] [-r <rate_file>] [-t <trigger_file>] [-p period_ns] <ros_topic>

    Counts the number of events in a fixed interval of length period (in nanoseconds), and writes it to rate_file. The first column is the ROS time stamp, the second sensor time, then the number of OFF and ON events, and the number of UP and DOWN edge external trigger events. The external trigger events are also written to a separate file (trigger_file) with the exact time stamps and whether it's an UP (1) or DOWN (0) edge. Can also operate on a rosbag if provided with the -b option.

Recorded data analysis tools
  • ros2 run event_camera_tools bag_to_raw -t <topic> -b <bag_name> -o <outout_raw_file> -c <camera_type>

    Converts bags with evt3 event_camera_msgs to raw file. The camera_type argument is necessary to produce a valid header for the raw file.

  • ros2 run event_camera_tools raw_to_bag -t <topic> -b <bag_file> -i <input_raw_file> [-I (ignore header)] [-w <sensor_width>] [-h <sensor_height>] -p <packet_duration_ms>

    Converts raw file into bag with evt3 event_camera_msgs. The packet_duration_ms gives the time slice (in milliseconds) per ROS packet. The default is 10ms. Choose this parameter smaller to get lower processing latencies. Unless you pull the -I flag, the sensor geometry, the encoding, and the date/time are extracted from the header of the raw file. The ROS header stamps are computed by assuming that the first event sensor time coincides with the ROS start time, and that host clock (ROS time) and sensor clock (sensor time) run at identical rates.

  • ros2 run event_camera_tools movie_maker -f <fps> -b <bag_name> -t <topic>

    Produces sequence of frame images.

  • ros2 run event_camera_tools find_trigger_events -i input_bag -t <topic_with_trigger_events>

    This tool is useful when aligning reconstructed image frames for datasets that use a pulse-per-second synchronization scheme. The find_trigger_events tool finds the ROS time and sensor time of the first trigger pulse in a rosbag. Output example:

    first trigger ROS    time: 1702577874035860000
    first trigger sensor time: 24809136000
    num triggers: 1712
    avg time between triggers:
    ROS time:    0.0499567s
    sensor time: 0.0499567s
    processed 202 number of messages
    

    The ROS and sensor times of the first trigger event serve as inputs for image reconstruction tools (opens in a new tab) such as bag_to_frames.

  • ros2 run event_camera_tools plot_events -b name_of_bag -o name_of_plot_file -t <topic> [-z]

    Creates file with 5 columns (sensor time, ros time, x, y, polarity) for plotting. Also useful for clear text viewing of events in bag file.

  • ros2 run event_camera_tools event_statics -b name_of_bag -t <topic> [-s <scale_file>] [-m max_delta_time]

    Computes the per-pixel number of ON and OFF events in a bag and writes them to scale_file.txt (default). The file has alternatingly the number of OFF and ON events in row major order, with line breaks after each row. This tool also performs sanity checks: event time going backwards or time jumping forward, and that elapsed host time matches elapsed 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.