38 int main(
int argc,
char *argv[])
45 if (nh_tilde.
getParam(
"image_path", img_path))
49 double min, max, publish_rate;
50 if (!nh_tilde.
getParam(
"publish_rate", publish_rate))
54 if (!nh_tilde.
getParam(
"repetition", repetition))
58 if (!nh_tilde.
getParam(
"nb_step", nb_mvt_step))
61 std::string controller_type;
62 if (!nh_tilde.
getParam(
"msg_type", controller_type))
65 std::string joint_name;
66 if (!nh_tilde.
getParam(
"joint_name", joint_name))
77 static_cast<unsigned int>(repetition),
78 static_cast<unsigned int>(nb_mvt_step),
88 if (!nh_tilde.
getParam(
"testing", testing))
96 static_cast<unsigned int>(repetition),
97 static_cast<unsigned int>(nb_mvt_step),
98 controller_type, testing);
void add_movement(PartialMovement mvt)
Publishes a sequence of movements.
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char *argv[])
Reads a png file and creates a movement from it.
bool getParam(const std::string &key, std::string &s) const