77 catch (
const std::out_of_range& oor)
79 ROS_ERROR(
"An out-of-range exception was caught. This probably means you selected the wrong controller type.");
91 if (msg->data ==
false &&
114 bool state_changed =
false;
125 std_msgs::Bool bool_pub_msg;
126 bool_pub_msg.data =
true;
130 state_changed =
true;
136 std_msgs::Bool bool_pub_msg;
137 bool_pub_msg.data =
false;
141 state_changed =
true;
149 std_msgs::Bool bool_pub_msg;
150 bool_pub_msg.data =
true;
154 state_changed =
true;
160 std_msgs::Bool bool_pub_msg;
161 bool_pub_msg.data =
false;
165 state_changed =
true;
static GamepadType controller
virtual void publish_steering_message(const sensor_msgs::Joy::ConstPtr &msg)=0
virtual void check_is_enabled(const sensor_msgs::Joy::ConstPtr &msg)
static double steering_max_speed
void publish(const boost::shared_ptr< M > &message) const
static pacmod_msgs::VehicleSpeedRpt::ConstPtr last_speed_rpt
virtual void callback_control(const sensor_msgs::Joy::ConstPtr &msg)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
static bool pacmod_enable
static int headlight_state
static std::mutex speed_mutex
ros::Subscriber speed_sub
static const uint16_t BUTTON_DOWN
static void callback_pacmod_enable(const std_msgs::Bool::ConstPtr &msg)
static void callback_veh_speed(const pacmod_msgs::VehicleSpeedRpt::ConstPtr &msg)
static JoyAxis steering_axis
static std::unordered_map< JoyButton, int, EnumHash > btns
static double brake_scale_val
std::vector< float > last_axes
virtual void publish_lights_horn_wipers_message(const sensor_msgs::Joy::ConstPtr &msg)=0
static const uint16_t INVALID
static std::mutex enable_mutex
static double accel_scale_val
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
virtual void publish_brake_message(const sensor_msgs::Joy::ConstPtr &msg)=0
static double max_veh_speed
static bool headlight_state_change
virtual void publish_turn_signal_message(const sensor_msgs::Joy::ConstPtr &msg)=0
virtual void publish_shifting_message(const sensor_msgs::Joy::ConstPtr &msg)=0
static const float MAX_ROT_RAD_DEFAULT
static bool last_pacmod_state
static std::unordered_map< JoyAxis, int, EnumHash > axes
virtual void publish_accelerator_message(const sensor_msgs::Joy::ConstPtr &msg)=0
ros::Publisher enable_pub