Skip to content

Commit

Permalink
[N/A] better error message if robot is missing joint level api license (
Browse files Browse the repository at this point in the history
#548)

## Change Overview

This came up recently when running the ros2 control stack on a robot that had an expired joint level control license. The error message spammed in this state is just "Failed to get robot state" which is not very helpful. Now this tells the user to double check for the license.

## Testing Done

N/A

Signed-off-by: Katie Hughes <[email protected]>
  • Loading branch information
khughes-bdai authored and Katie Hughes committed Jan 14, 2025
1 parent 3d89ae4 commit eba2b17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spot_hardware_interface/src/spot_hardware_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ void state_stream_loop(std::stop_token stop_token, ::bosdyn::client::RobotStateS
// Get robot state stream
auto robot_state_stream = stateStreamClient->GetRobotStateStream();
if (!robot_state_stream) {
RCLCPP_ERROR(rclcpp::get_logger("SpotHardware"), "Failed to get robot state");
RCLCPP_ERROR(rclcpp::get_logger("SpotHardware"),
"Failed to get robot state. Does the robot have a valid joint level control license?");
continue;
}
latest_state_stream_response = std::move(robot_state_stream.response);
Expand Down

0 comments on commit eba2b17

Please sign in to comment.