118 dbw_polaris_msgs::BrakeCmd
msg;
122 msg.pedal_cmd_type = dbw_polaris_msgs::BrakeCmd::CMD_PERCENT;
129 dbw_polaris_msgs::ThrottleCmd
msg;
133 msg.pedal_cmd_type = dbw_polaris_msgs::ThrottleCmd::CMD_PERCENT;
140 dbw_polaris_msgs::SteeringCmd
msg;
146 msg.cmd_type = dbw_polaris_msgs::SteeringCmd::CMD_ANGLE;
148 float raw_steering_cmd;
150 raw_steering_cmd = dbw_polaris_msgs::SteeringCmd::ANGLE_MAX *
data_.
steering_joy;
152 raw_steering_cmd = 0.5 * dbw_polaris_msgs::SteeringCmd::ANGLE_MAX *
data_.
steering_joy;
159 msg.steering_wheel_angle_velocity =
svel_;
160 msg.steering_wheel_angle_cmd = filtered_steering_cmd;
162 msg.cmd_type = dbw_polaris_msgs::SteeringCmd::CMD_TORQUE;
171 dbw_polaris_msgs::GearCmd
msg;
183 ROS_ERROR_THROTTLE(2.0,
"Detected Logitech Gamepad F310 in DirectInput (D) mode. Please select (X) with the switch on the back to select XInput mode.");