35 ROS_ERROR(
"Could not open config file: %s", config_file_path.c_str());
66 if (index == 0 || index == 2 || index == 3 || index == 4)
91 if (index == 0 || index == 2 || index == 3 || index == 4)
95 while (result < -M_PI)
98 while (result >= M_PI)
164 return deg * (
M_PI / 180.0);
double vel_enc2rad(int index, short encoders)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
static const double KNI_TO_ROS_TIME
KNI time is in 10 milliseconds (most of the time), ROS time is in seconds.
double acc_rad2enc(int index, double acc)
bool openFile(const char *filepath)
double vel_acc_jerk_rad2enc(int index, double vel_acc_jerk)
double vel_acc_jerk_enc2rad(int index, short encoders)
double deg2rad(const double deg)
double angle_rad2enc(int index, double angle)
TMotInit getMotInit(short number)
double angle_enc2rad(int index, int encoders)
static const double KNI_TO_URDF_GRIPPER_FACTOR
double vel_rad2enc(int index, double vel)
KNIConverter(std::string config_file_path)
double jerk_enc2rad(int index, short encoders)
const size_t GRIPPER_INDEX
The motor index of the gripper (used in all vectors – e.g., motor_angles_)
double acc_enc2rad(int index, short encoders)
static const double KNI_GRIPPER_CLOSED_ANGLE
constants for converting between the KNI gripper angle and the URDF gripper angle ...
double jerk_rad2enc(int index, double jerk)
static const double GRIPPER_CLOSED_ANGLE
Constants for gripper fully open or fully closed (should be equal to the value in the urdf descriptio...