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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway 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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway at Robotics Stack Exchange

No version for distro kilted showing humble. Known supported distros are highlighted in the buttons above.

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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway 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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway at Robotics Stack Exchange

No version for distro rolling showing humble. Known supported distros are highlighted in the buttons above.

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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway at Robotics Stack Exchange

No version for distro github showing humble. Known supported distros are highlighted in the buttons above.

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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway at Robotics Stack Exchange

No version for distro galactic showing humble. Known supported distros are highlighted in the buttons above.

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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway at Robotics Stack Exchange

No version for distro iron showing humble. Known supported distros are highlighted in the buttons above.

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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway at Robotics Stack Exchange

No version for distro melodic showing humble. Known supported distros are highlighted in the buttons above.

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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway at Robotics Stack Exchange

No version for distro noetic showing humble. Known supported distros are highlighted in the buttons above.

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-11-22
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

HTTP gateway for ros2_medkit diagnostics system

Maintainers

  • bburda

Authors

No additional authors.

ros2_medkit_gateway

HTTP gateway node for the ros2_medkit diagnostics system.

Overview

The ROS 2 Medkit Gateway exposes ROS 2 system information and data through a RESTful HTTP API. It automatically discovers nodes in the ROS 2 system, organizes them into a SOVD-aligned entity hierarchy (Areas, Components, Apps, Functions), and provides endpoints to query and interact with them.

Key Features:

  • Auto-discovery: Automatically detects ROS 2 nodes and topics. A node the gateway saw running that the ROS graph still lists after its participant left, with no endpoints, is not exposed, and a warning is logged when that starts (see “How long a departed node keeps being listed” in docs/config/server.rst)
  • SOVD entity model: Areas, Components (host-level), Apps (ROS 2 nodes), and Functions (namespace-based logical grouping)
  • REST API: Standard HTTP/JSON interface
  • Incremental entity cache: Discovery refresh diffs add/remove/change and performs zero structural allocations in the cache layer at steady state (object-pool backed, fixed capacity reserved at init via entity_cache.capacity)
  • Real-time updates: Configurable cache refresh for up-to-date system state
  • Bulk Data Management: Upload, download, list, and delete bulk data files (calibration, firmware, etc.)
  • Resource Locking: SOVD-compliant entity locking with scoped access control, lock breaking, and automatic expiry

Endpoints

All endpoints are prefixed with /api/v1 for API versioning.

Discovery Endpoints

  • GET /api/v1/health - Health check endpoint (returns healthy status)
  • GET /api/v1/ - Gateway status and version information
  • GET /api/v1/version-info - SOVD version info (supported SOVD versions and base URIs)
  • GET /api/v1/areas - List all discovered areas (powertrain, chassis, body, root)
  • GET /api/v1/areas/{area_id} - Get area capabilities
  • GET /api/v1/areas/{area_id}/subareas - List sub-areas within an area
  • GET /api/v1/areas/{area_id}/contains - List components contained in an area
  • GET /api/v1/components - List all discovered components across all areas
  • GET /api/v1/components/{component_id} - Get component capabilities
  • GET /api/v1/components/{component_id}/subcomponents - List sub-components
  • GET /api/v1/components/{component_id}/hosts - List apps hosted on a component
  • GET /api/v1/components/{component_id}/depends-on - List component dependencies
  • GET /api/v1/areas/{area_id}/components - List components within a specific area
  • GET /api/v1/apps - List all discovered apps
  • GET /api/v1/apps/{app_id} - Get app capabilities
  • GET /api/v1/apps/{app_id}/is-located-on - Get the component hosting this app
  • GET /api/v1/functions - List all discovered functions
  • GET /api/v1/functions/{function_id} - Get function capabilities
  • GET /api/v1/functions/{function_id}/hosts - List apps grouped by this function

Component Data Endpoints

  • GET /api/v1/components/{component_id}/data - Read all topic data from a component
  • GET /api/v1/components/{component_id}/data/{topic_name} - Read specific topic data from a component
  • PUT /api/v1/components/{component_id}/data/{topic_name} - Publish data to a topic

Operations Endpoints (Services & Actions)

  • GET /api/v1/components/{component_id}/operations - List all services and actions for a component
  • GET /api/v1/components/{component_id}/operations/{operation_id} - Get operation details
  • POST /api/v1/components/{component_id}/operations/{operation_id}/executions - Execute operation (call service or send action goal)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions - List all executions for an operation (empty for a service, which leaves no execution resource)
  • GET /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Get execution status
  • DELETE /api/v1/components/{component_id}/operations/{operation_id}/executions/{execution_id} - Cancel action execution

Configurations Endpoints (ROS 2 Parameters)

  • GET /api/v1/components/{component_id}/configurations - List all parameters for a component
  • GET /api/v1/components/{component_id}/configurations/{param} - Get parameter value
  • PUT /api/v1/components/{component_id}/configurations/{param} - Set parameter value
  • DELETE /api/v1/components/{component_id}/configurations/{param} - Reset parameter to default value
  • DELETE /api/v1/components/{component_id}/configurations - Reset all parameters to default values

Bulk Data Endpoints

  • GET /api/v1/{entity}/{id}/bulk-data - List bulk-data categories (configured, plus rosbags when the fault manager serves them)
  • GET /api/v1/{entity}/{id}/bulk-data/{category} - List bulk-data items in a category
  • GET /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Download a bulk-data file
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/manifest - Manifest of a rosbag recording: its storage files in order, with size and sha256
  • GET /api/v1/{entity}/{id}/bulk-data/rosbags/{recording_id}/files/{index} - Download one storage file of a rosbag recording (supports Range)
  • POST /api/v1/{entity}/{id}/bulk-data/{category} - Upload bulk data (components/apps only)
  • DELETE /api/v1/{entity}/{id}/bulk-data/{category}/{item_id} - Delete bulk data (components/apps only)

Logging Endpoints

  • GET /api/v1/components/{component_id}/logs - Query recent log entries for a component (all its nodes, prefix match)
  • GET /api/v1/apps/{app_id}/logs - Query recent log entries for a specific app node (exact match)
  • GET /api/v1/components/{component_id}/logs/configuration - Get log configuration for a component
  • GET /api/v1/apps/{app_id}/logs/configuration - Get log configuration for an app
  • PUT /api/v1/components/{component_id}/logs/configuration - Update log configuration for a component
  • PUT /api/v1/apps/{app_id}/logs/configuration - Update log configuration for an app

Locking Endpoints

  • POST /api/v1/{components|apps}/{id}/locks - Acquire a lock on an entity
  • GET /api/v1/{components|apps}/{id}/locks - List active locks on an entity
  • GET /api/v1/{components|apps}/{id}/locks/{lock_id} - Get lock details
  • PUT /api/v1/{components|apps}/{id}/locks/{lock_id} - Extend lock expiration
  • DELETE /api/v1/{components|apps}/{id}/locks/{lock_id} - Release a lock

Trigger Endpoints

  • POST /api/v1/{entity}/{id}/triggers - Create a trigger with conditions
  • GET /api/v1/{entity}/{id}/triggers - List active triggers
  • GET /api/v1/{entity}/{id}/triggers/{trigger_id} - Get trigger details
  • PUT /api/v1/{entity}/{id}/triggers/{trigger_id} - Update trigger conditions
  • DELETE /api/v1/{entity}/{id}/triggers/{trigger_id} - Delete a trigger

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package ros2_medkit_gateway

0.7.2 (2026-11-19)

  • The bringup preset (config/bringup_params.yaml) sets snapshots.rosbag.topics to all. With the parameter default entity a fault from the diagnostic_bridge was recorded with the bridge's own topics only, so a /diagnostics fault got a recording with /diagnostics and nothing about the robot. The parameter default stays entity, and topics whose name contains /image, /points, /depth or /compressed stay out of the recording. A recording made with the preset is larger than before (#804)
  • Contributors: \@mfaferek93

0.7.1 (2026-11-18)

  • A recording can be read by its manifest. The rosbag descriptors of GET /{entity}/bulk-data/rosbags say whether a recording has a manifest, the manifest names the recording's files, and each file is downloaded on its own route. Both download routes answer RFC 9110 range requests, and a manifest is served whole when the request carries a Range (#785)
  • Breaking: GET /{entity}/bulk-data/rosbags answers 503 when the fault manager cannot list one of the sources. 0.7.0 answered 200 with a short or empty list (#785)
  • A recording's size is the sum of the storage files its metadata names. For a split recording the download route serves only the first storage file, so size is larger than that download's Content-Length; the listing descriptor gives the file count as x-medkit.storage_files, and the download answers 500 when the first named file is missing. An unreadable bag no longer fails the listing, and a storage file that is a symlink is neither sized nor served (#679, #684, #785)
  • The gateway's own helper nodes are no longer listed as apps or reported as undeclared nodes, also for a namespaced gateway, and a graph leftover is hidden for a node discovery saw running. 0.7.0 hid no graph leftovers (#660). The helper nodes run on the gateway node's context under their own hidden names (#723, #725)
  • GET /faults on a chain of aggregating gateways lists the chain's faults without looping. A request carries the path it has visited in X-Medkit-Fan-Out-Visited, and a gateway that receives it asks only the peers that are not on the path yet. A path that is too long is reported as a too-deep peer failure, and GET /health has a new x-medkit-instance-id. Upgrade all gateways of a chain together: a 0.7.0 aggregator sends only X-Medkit-No-Fan-Out, which a 0.7.1 gateway answers with its own faults, so in a chain A (0.7.0) -> B (0.7.1) -> C, A stops listing the faults of C and the answer is not marked partial (#721)
  • Peer discovery browses mDNS from port 5353, bound to the mDNS group, so peers answer by multicast (#720)
  • Triggers: the resource path is percent-decoded the way a GET path is, topic resolution accepts an encoded leading slash, a polled data trigger sees the value the way a topic trigger does, and unsubscribing a notifier ends delivery before the call returns
  • Cyclic subscriptions read their items the way GET reads them, and their resource path is decoded like a GET path
  • Shutdown: SIGINT and SIGTERM are taken on one dedicated thread (#757), and a signal that arrives during startup is deferred until startup is done (#734). For plugin authors: both signals stay blocked in every other thread, and a child process keeps that mask across fork and exec. A process a plugin starts keeps SIGTERM pending until it unblocks it, so a stop that sends SIGTERM does not end sleep or a Python script. The built-in script provider resets the mask for this reason
  • Services of a restarted node are read from its reply writers (#733), and only served entities are listed as Function hosts (#726)
  • A script started without a payload gets /dev/null as stdin instead of inheriting the gateway's (#752)
  • The bulk-data categories list only what the host serves, and a host without rosbags answers the rosbags category as an unknown category (#760)
  • The REST configuration carries the server name, the vendor name and the version, and the API documentation page shows the configured server name
  • A plugin entity's freeze frame says where its values came from (#660)
  • Breaking (C++ API): DataAccessManager::get_type_introspection() is removed from data_access_manager.hpp. Message, service and action schemas come through TypeSchemaProvider, and code that calls the old method does not compile (#750)
  • The HTTP layer, triggers, lock expiry, scripts, peer aggregation, freeze-frame capture, the cyclic-subscription samplers and the bulk-data store are built by a ROS-free gateway core, and one fault

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ros2_medkit_gateway at Robotics Stack Exchange