Add tool GPIO support to RobotDriverServer/Client and RobotDriverROS - #21
Open
erwinkendo wants to merge 2 commits into
Open
erwinkendo wants to merge 2 commits into
erwinkendo wants to merge 2 commits into
Conversation
added 2 commits
October 2, 2026 08:16
…th sas server/client architecture Added functionality to modify tool_gpio_ from a RobotDriverROS using sas server/client architecture. A function is called inside the control_loop only if enabled in the `RobotDriverROSConfiguration` structure. This functionality can be used from the sas_robot_driver_client. Key changes: - `sas_robot_driver_ros.*`: Modified `RobotDriverROSConfiguration` with boolean flag and modified `control_loop` - `sas_robot_driver_server.*`: Added subscribers and default callbacks for topic "/set/tool_gpio" - `sas_robot_driver_client.*`: Added publisher for topic "/set/tool_gpio"
… add Python bindings and docs
erwinkendo
marked this pull request as ready for review
October 2, 2026 11:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a client/server path for commanding the tool GPIO introduced in MarinhoLab/sas_cpp#13.
Changes
RobotDriverClient<topic_prefix>/set/tool_gpio(std_msgs/msg/ByteMultiArray).send_tool_gpio(const std::array<bool, 2>&).RobotDriverServer<topic_prefix>/set/tool_gpio. Like the other/set/topics, it requires a single publisher.get_tool_gpio() const.RobotDriverROSRobotDriverROSConfiguration::robot_tool_gpio_enable(defaultfalse).control_loop()forwards the server's latest value toRobotDriver::set_tool_gpio().RobotDriverClient.send_tool_gpio,RobotDriverServer.get_tool_gpio, andRobotDriverROSConfiguration.robot_tool_gpio_enable.AGENTS.md.New topic
<topic_prefix>/set/tool_gpiostd_msgs/msg/ByteMultiArraydata[i]is 0 or 1, exactly 2 elements)Backwards compatibility
robot_tool_gpio_enabledefaults tofalse, so existing nodes, including the composer and example nodes, behave as before.Dependencies
libmarinholab-sas-corerelease that includes it. Thesas_corecompatibility shim exposes the new methods throughnamespace sas, so nosas_corechange is needed.Testing
All tests were run with https://github.com/erwinkendo/sas_robot_driver_tester (see SmartArmStack/sas_robot_driver_ur# for details). The CI flow in
docker/compose.ymlstill builds and runs the Python interface example.