39 double fac_button_x = 0;
40 double fac_button_y = 0;
51 fac_button_y = fac_button_up + fac_button_down;
55 fac_button_x = fac_button_left + fac_button_right;
63 factor_x = fac_button_x + fac_stick_x;
64 factor_y = fac_button_y + fac_stick_y;
71 int main(
int argc,
char** argv)
73 ros::init(argc, argv,
"uos_diffdrive_teleop_ps3");
#define PS3_AXIS_STICK_LEFT_LEFTWARDS
#define PS3_BUTTON_CROSS_LEFT
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
#define PS3_BUTTON_CROSS_RIGHT
#define PS3_BUTTON_CROSS_UP
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
#define PS3_AXIS_STICK_LEFT_UPWARDS
#define PS3_AXIS_BUTTON_CROSS_DOWN
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
#define PS3_BUTTON_CROSS_DOWN
#define PS3_AXIS_BUTTON_CROSS_UP
#define PS3_AXIS_BUTTON_CROSS_LEFT
int main(int argc, char **argv)
#define PS3_AXIS_BUTTON_CROSS_RIGHT
void PS3Callback(const sensor_msgs::Joy::ConstPtr &joy)