17 releases

0.3.13 May 7, 2024
0.3.10 Apr 15, 2024
0.3.7 Jan 26, 2024
0.3.6 Dec 15, 2023
0.1.3 Dec 17, 2022

#6 in Robotics

Download history 126/week @ 2024-02-23 153/week @ 2024-03-01 338/week @ 2024-03-08 300/week @ 2024-03-15 238/week @ 2024-03-22 219/week @ 2024-03-29 604/week @ 2024-04-05 820/week @ 2024-04-12 397/week @ 2024-04-19 477/week @ 2024-04-26 567/week @ 2024-05-03 469/week @ 2024-05-10 360/week @ 2024-05-17 356/week @ 2024-05-24 405/week @ 2024-05-31 255/week @ 2024-06-07

1,469 downloads per month

Custom license

7.5MB
179K SLoC

Contains (WOFF font, 99KB) fontawesome-webfont.woff, (WOFF font, 78KB) fontawesome-webfont.woff2, (WOFF font, 45KB) open-sans-v17-all-charsets-300.woff2, (WOFF font, 41KB) open-sans-v17-all-charsets-300italic.woff2, (WOFF font, 45KB) open-sans-v17-all-charsets-600.woff2, (WOFF font, 43KB) open-sans-v17-all-charsets-600italic.woff2 and 7 more.

safe_drive: Formally Specified Rust Bindings for ROS2

safe_drive is a Rust bindings for ROS2. This library provides formal specifications and tested the specifications by using a model checker. Therefore, you can clearly understand how the scheduler work and the safeness of it.

Specifications

Some algorithms we adopted are formally specified and tested the safeness by using TLA+. Original ROS2's executor (rclcpp) suffers from starvation. In contrast, the starvation freedom of our executor has been validated by not only dynamic analysis but also formal verification.

See specifications.

We specified and tested as follows.

  • Single Threaded Callback Execution
    • Deadlock freedom
    • Starvation freedom
  • Scheduling Core Algorithm
    • Validate the insertion algorithm
    • Termination
  • Initialize Once
    • Deadlock freedom
    • Termination
    • Initialization is performed just once

Documents

Supporting ROS2

  • Humble
  • Galactic (EOL)

Supporting DDS

  • CycloneDDS
  • FastDDS

Progress

  • Zero copy
  • Custom memory allocator
  • Topic (Pub/Sub)
  • Service (Client/Server)
  • Asynchronous programming (async/await)
  • Callback based programming
  • Logging
  • Signal handling
  • Parameter
  • Timer
  • Action (service + topic)
  • Rust code generation from .msg and .srv files
  • Formal Specification
    • Single threaded callback based executer
    • Scheduling Core Algorithm
    • Initializer performed just once

Dependencies

~3–10MB
~96K SLoC