deepracer_follow_the_leader_ws/ctrl_pkg/src/ctrl_state.cpp
void enableGPIO(rclcpp::Client<deepracer_interfaces_pkg::srv::ServoGPIOSrv>::SharedPtr &servoGPIOClient){
        auto servoGPIORequest = std::make_shared<deepracer_interfaces_pkg::srv::ServoGPIOSrv::Request>();
        // 0 for enable and 1 for disable
        servoGPIORequest->enable = 0;
        auto future_result_servo_gpio = servoGPIOClient->async_send_request(servoGPIORequest);
    }
/// Helper method that ensures the gpio is enabled.
/// @param servoGPIOClient Reference to the servo gpio client
Helper method that ensures the gpio is enabled.
Helper method that ensures the gpio is enabled .
void enableGPIO(rclcpp::Client<deepracer_interfaces_pkg::srv::ServoGPIOSrv>::SharedPtr &servoGPIOClient){
        auto servoGPIORequest = std::make_shared<deepracer_interfaces_pkg::srv::ServoGPIOSrv::Request>();
        servoGPIORequest->enable = 0;
        auto future_result_servo_gpio = servoGPIOClient->async_send_request(servoGPIORequest);
    }
void enableGPIO ( rclcpp :: Client < deepracer_interfaces_pkg :: srv :: ServoGPIOSrv > :: SharedPtr & servoGPIOClient ) { auto servoGPIORequest = std :: make_shared < deepracer_interfaces_pkg :: srv :: ServoGPIOSrv :: Request > ( ) ; servoGPIORequest -> enable = 0 ; auto future_result_servo_gpio = servoGPIOClient -> async_send_request ( servoGPIORequest ) ; }
Helper method that ensures the gpio is enabled.
Helper method that ensures the gpio is enabled .
// 0 for enable and 1 for disable