20 ROS_ERROR(
"[JoystickHandler] Input parameters missing in config!");
48 twist = geometry_msgs::Twist();
57 twist.linear.x =
x_axis_->getValue();
60 twist.linear.y =
y_axis_->getValue();
80 ROS_ERROR(
"[JoystickHandler] Couldn't handle '%s' input type!", name.c_str());
83 ROS_ERROR(
"[JoystickHandler] '%s' input parameter missing in config!", name.c_str());
89 double acc =
convertJoyAxisToAcc(elapsed_time_sec, joy_val, val, min_vel, max_vel) * sensivity;
90 acc = std::min(max_acc, std::max(min_acc, acc));
93 val = std::min(max_vel, std::max(min_vel, val+acc));
100 return (joy_val*std::abs(max_vel) - val)*elapsed_time_sec;
102 return (joy_val*std::abs(min_vel) - val)*elapsed_time_sec;
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
bool hasMember(const std::string &name) const
bool getParam(const std::string &key, std::string &s) const