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
  • Loading branch information
khughes-bdai authored Jan 9, 2025
1 parent 1a1e721 commit dd8ac8f
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 dd8ac8f

Please sign in to comment.