Skip to content

Support rosbridge advertised services - #1

Merged
axelpey merged 5 commits into
mainfrom
codex/advertise-service-support
Jun 2, 2026
Merged

Support rosbridge advertised services#1
axelpey merged 5 commits into
mainfrom
codex/advertise-service-support

Conversation

@axelpey

@axelpey axelpey commented Jun 2, 2026

Copy link
Copy Markdown

Adds rosbridge-compatible support for websocket clients that advertise ROS services via advertise_service, receive service calls over the websocket, and respond with service_response.

What changed:

  • Add a type-erased GenericService wrapper around rclcpp::ServiceBase.
  • Add request/response serialization helpers for the advertised-service direction.
  • Handle advertise_service, unadvertise_service, and service_response in ClientHandler.
  • Update the node-interface mock and README support table.

Validation:

  • Built rws standalone in the sim Docker image with tests enabled.
  • Vendored this branch temporarily into innate-os PR #411 and confirmed the simulator runs on a single RWS port, 9090.
  • Confirmed ROS sees all simulator-owned arm services: /mars/arm/goto_js, /mars/arm/goto_js_v2, /mars/arm/goto_js_trajectory, /mars/arm/torque_on, /mars/arm/torque_off, /mars/arm/reboot.
  • Confirmed service calls succeed through RWS for /mars/arm/torque_on and /mars/arm/goto_js_v2.

@axelpey
axelpey merged commit a40dfa0 into main Jun 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant