Arm teleop fixes#169
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves rover arm teleoperation safety/UX, adds an explicit “stop motion” service to the arm MoveGroup node, and refines TalonSRX continuous-joint (“crossover”) handling and related configuration/URDF parameters.
Changes:
- Refactors
ArmTeleopinto more explicit readiness/error states and scales teleop velocities by joystick throttle. - Adds a
~/stop(std_srvs/Trigger) service toMoveGroupNodeto stop motion immediately. - Updates TalonSRX rad↔tick conversion logic and switches URDF joint config from
continuoustocrossover, plus lowers arm servo velocity limits.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/URDF/rover_urdf/urdf/arm_urdf.ros2_control.xacro | Switches continuous-joint flagging to the new crossover parameter. |
| src/Teleop-Control/joystick_control/src/arm_teleop.cpp | Implements new teleop state machine, readiness checks, state publishing, and throttle scaling. |
| src/Teleop-Control/joystick_control/include/arm_teleop.hpp | Updates state enum and adds helpers for readiness/state publishing. |
| src/HW-Devices/hardware/src/TalonSRXWrapper.cpp | Refactors conversions and crossover position tracking; standardizes Talon feedback configuration. |
| src/HW-Devices/hardware/include/TalonSRXWrapper.hpp | Adds conversion helpers and stores raw position for crossover computations. |
| src/Arm/arm_control/src/MoveGroupNode.cpp | Adds ~/stop service callback to stop MoveGroup motion. |
| src/Arm/arm_control/include/arm_control/MoveGroupNode.hpp | Declares the new stop service and includes Trigger definition. |
| src/Arm/arm_control/config/arm_config.yaml | Reduces max linear/rotational/joint speed scaling for safer arm motion. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
ConnorNeed
force-pushed
the
arm-teleop-fixes
branch
from
July 13, 2026 03:41
ed476e9 to
9dc69b3
Compare
codeflight1
approved these changes
Jul 13, 2026
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 pull request introduces several important improvements and fixes across the arm control, hardware interface, and teleop subsystems. The main themes are: improved safety and feedback for arm teleoperation, more robust and accurate TalonSRX motor control (especially for crossover/continuous joints), and the addition of a service to stop arm motion. There are also configuration and URDF updates to support these changes.
Arm Teleop Improvements:
ArmTeleopstate machine to provide more informative states (e.g.,NO_MESSAGE,UNPLUG_ERROR,WIGGLE_WARNING,IDLE) and improved initialization checks, including better user feedback and error handling when the joystick is not ready or needs to be replugged (arm_teleop.hpp,arm_teleop.cpp). [1] [2] [3] [4] [5] [6] [7] [8] [9]Arm Control / Motion Group:
stopservice (std_srvs/Trigger) to theMoveGroupNode, allowing external components to immediately halt arm motion safely. [1] [2] [3] [4] [5]TalonSRX Motor Control (Hardware Interface):
ticks_to_radsandrads_to_tickshelpers, improving accuracy and clarity, especially for joints in crossover (continuous) mode. [1] [2] [3] [4]ConfigFeedbackNotContinuous(false)to standardize feedback configuration.URDF/Configuration Updates:
crossoverparameter for continuous joints, matching the code changes.Safety and Usability:
These changes together improve the safety, reliability, and user feedback for arm teleoperation and hardware control.