Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_medkit_lerobot at Robotics Stack Exchange
Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_medkit_lerobot at Robotics Stack Exchange
Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_medkit_lerobot at Robotics Stack Exchange
Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_medkit_lerobot at Robotics Stack Exchange
Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_medkit_lerobot at Robotics Stack Exchange
Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_medkit_lerobot at Robotics Stack Exchange
Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_medkit_lerobot at Robotics Stack Exchange
Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_medkit_lerobot at Robotics Stack Exchange
Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged ros2_medkit_lerobot at Robotics Stack Exchange
Package Summary
| Version | 0.7.2 |
| License | Apache-2.0 |
| Build type | AMENT_CMAKE |
| Use | RECOMMENDED |
Repository Summary
| Description | |
| Checkout URI | https://github.com/selfpatch/ros2_medkit.git |
| VCS Type | git |
| VCS Version | main |
| Last Updated | 2026-12-02 |
| Dev Status | DEVELOPED |
| Released | RELEASED |
| Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Maintainers
- bburda
Authors
ros2_medkit_lerobot
Gateway plugin lerobot: puts each LeRobot that
lerobot-medkit watches in the entity tree. lerobot-medkit
describes its setup on a ROS 2 topic; the plugin turns each description into an
external component with external apps:
| Entity | Id (from lerobot-medkit) | |
|---|---|---|
| component | so101-lerobot |
the LeRobot, driving the robot so101
|
| app | so101-lerobot-policy |
the policy |
| app | so101-lerobot-medkit |
the monitor |
External entities own their bare id in the fault scope (fault_scope.cpp): a
fault reported with source_id = one of these ids is listed on that entity and
rolls up to the component. In runtime_only discovery the gateway serves plugin
entities directly, so no manifest is needed.
Run
ros2 launch ros2_medkit_lerobot lerobot.launch.py
starts ros2_medkit_gateway’s bringup.launch.py (gateway, fault manager,
bridges) with config/lerobot_params.yaml: the lerobot plugin with a state
file, and a fault manager that confirms on the first report, heals, and records
one MCAP per confirmation (60 s before, 2 s after), the robot’s topics and
lerobot-medkit’s state, action and inference time. Topics named like a sensor
stream stay out of the recordings, the LeRobot images included; list the ones
to keep in snapshots.rosbag.include_topics.
extra_params_file:=mine.yaml is laid over the shipped file key by key, for
each node, so a file of your own holds only what differs:
fault_manager:
ros__parameters:
snapshots.rosbag.include_topics:
- /lerobot/so101_lerobot/observation/images/wrist
- /my_robot/camera/wrist/image_raw/compressed
Every bringup.launch.py argument (server_host, server_port,
allow_unauthenticated_remote, enable_log_bridge, …) is passed on. Then
attach lerobot-medkit to the policy (lerobot-medkit-rollout, or
lerobot_medkit.attach()).
Configuration
plugins: ["lerobot"]
plugins.lerobot.path: "<install>/lib/ros2_medkit_lerobot/libros2_medkit_lerobot.so"
plugins.lerobot.topic: "/lerobot_medkit/setup" # default
plugins.lerobot.max_setups: 64 # 1 to 1024
plugins.lerobot.max_apps: 16 # per setup, 1 to 256
plugins.lerobot.max_topics: 64 # per app, 0 to 1024
plugins.lerobot.max_bytes: 65536 # per description, 1024 to 1048576
plugins.lerobot.state_file: "" # where to keep the setups; empty: memory only
An integer out of range becomes the nearer bound, and anything else keeps the default, each with a warning.
Behaviour
- The subscription is reliable and transient local, depth 64: a gateway that starts after the monitor still gets every monitor’s description.
- A description is JSON,
version1:node(the describing node),component(id,name,description) andapps(id,name,description,topics). Ids follow the gateway’s entity id rule (1 to 256 ofA-Z a-z 0-9 _ -), topics must be absolute. One that breaks a rule or a bound is ignored whole, with one warning per component and reason; the previous description of that component stays. - A description with the same component id replaces the earlier one. An app id another component already has, or a component id that is another component’s app, is refused: an id names one entity.
- An app is online while the node that described it is in the ROS 2 graph. When
the process ends, the component and its apps stay (offline), so the faults
reported for them stay reachable. With
state_file, the descriptions are written there (whole, to a temporary file renamed over it) when one is added or changes, and read back at start: the entities then also stay across a gateway restart. Without it they go when the gateway restarts. - Unknown keys are ignored, so a newer lerobot-medkit can add some.
- A setup that is no longer used (a robot renamed, an arm taken away) stays
until it is removed:
DELETE /api/v1/components/<id>/x-medkit-lerobotforgets it, takes it out of the state file and refreshes the tree (200,{"id": ..., "removed": true}). It answers 404 for an id that is not a LeRobot component, and 409 while the node that described it is in the graph: that monitor would not describe it again; 500 whenstate_filecould not be rewritten (the setup is gone until the gateway restarts, then read back). With authentication on, the route needs theadminrole, like every plugin route. The route stands in for SOVD clear-data (PUT /components/{id}/clear-data/cached-data), which ros2_medkit does not serve yet. What was reported on the removed entities stays in the fault manager: its faults are listed in/faults(and on another entity that reported the same code: the fault manager keeps one record per code, with every source that reported it), and their recordings stay untilmax_total_storage_mbpushes them out.
File truncated at 100 lines see the full file
Package Dependencies
| Deps | Name |
|---|---|
| ament_cmake | |
| ros2_medkit_cmake | |
| ament_index_python | |
| launch | |
| ament_lint_auto | |
| ament_lint_common | |
| ament_cmake_clang_format | |
| ament_cmake_gtest | |
| ament_cmake_pytest | |
| ros2_medkit_gateway | |
| rclcpp | |
| std_msgs |