{"id":28512708,"url":"https://github.com/henriktrom/ros-node-interface","last_synced_at":"2026-04-29T15:06:44.033Z","repository":{"id":295827495,"uuid":"991372107","full_name":"HenrikTrom/ros-node-interface","owner":"HenrikTrom","description":"A lightweight C++ and python interface template for managing ROS nodes with start/stop/shutdown control via ROS services.","archived":false,"fork":false,"pushed_at":"2025-06-20T16:41:23.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T17:41:21.912Z","etag":null,"topics":["cpp","interface","ros","ros2"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HenrikTrom.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"Citation.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-27T14:22:01.000Z","updated_at":"2025-06-20T16:41:27.000Z","dependencies_parsed_at":"2025-05-27T15:54:50.126Z","dependency_job_id":null,"html_url":"https://github.com/HenrikTrom/ros-node-interface","commit_stats":null,"previous_names":["henriktrom/ros-node-interface"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/HenrikTrom/ros-node-interface","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenrikTrom%2Fros-node-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenrikTrom%2Fros-node-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenrikTrom%2Fros-node-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenrikTrom%2Fros-node-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HenrikTrom","download_url":"https://codeload.github.com/HenrikTrom/ros-node-interface/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenrikTrom%2Fros-node-interface/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263430459,"owners_count":23465387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","interface","ros","ros2"],"created_at":"2025-06-09T01:00:30.507Z","updated_at":"2026-04-29T15:06:44.028Z","avatar_url":"https://github.com/HenrikTrom.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ros-node-interface\n\n[![DOI](https://zenodo.org/badge/991372107.svg)](https://zenodo.org/badge/latestdoi/991372107)\n\nA lightweight C++ and python interface template for managing ROS nodes with start/stop/shutdown control via ROS services.\n\n## 📑 Citation\n\nIf you use this software, please use the GitHub **“Cite this repository”** button at the top(-right) of this page.\n\nThis module provides a generic wrapper (`BaseRosInterface`) around any ROS-compatible module class, enabling it to be:\n- Started and stopped using ROS service calls\n- Managed with a clean threaded loop\n- Extended for custom node types and behaviors\n\n## Features\n\n- Threaded execution loop (`loop_step`)\n- Service-based control (`start`, `stop`, `shutdown`)\n- Simple modular interface for defining new node types\n- Example `TestModule` provided for demonstration\n\n## Example Usage\n\n```cpp\n#include \"ros-node-interface.hpp\"\n\nint main(int argc, char **argv)\n{\n    ros::init(argc, argv, \"my_node\");\n\n    auto my_module = std::make_unique\u003cros_node_interface::TestModule\u003e(\n        ros::NodeHandle(), \"my_topic\"\n    );\n\n    ros_node_interface::BaseRosInterface\u003cros_node_interface::TestModule\u003e interface(\n        std::move(my_module)\n    );\n\n    return 0;\n}\n````\n\n## Dependencies\n\n* ROS (tested with ROS Noetic)\n* `std_srvs/Trigger`\n* C++14 or newer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriktrom%2Fros-node-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenriktrom%2Fros-node-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriktrom%2Fros-node-interface/lists"}