ROBOT_UNLOCK(est_pos_indep_odo);
}
+static void send_est_pos_best_cb(const ORTESendInfo *info, void *vinstance,
+ void *sendCallBackParam)
+{
+ struct robot_pos_type *instance = (struct robot_pos_type *)vinstance;
+
+ robot_get_est_pos(&instance->x, &instance->y, &instance->phi);
+}
+
void send_dummy_cb(const ORTESendInfo *info, void *vinstance,
void *sendCallBackParam)
{
robottype_publisher_ref_pos_create(&robot.orte, send_ref_pos_cb, &robot.orte);
robottype_publisher_est_pos_odo_create(&robot.orte, send_est_pos_odo_cb, &robot.orte);
robottype_publisher_est_pos_indep_odo_create(&robot.orte, send_est_pos_indep_odo_cb, &robot.orte);
+ robottype_publisher_est_pos_best_create(&robot.orte, send_est_pos_best_cb, &robot.orte);
//???robottype_publisher_pwr_ctrl_create(&robot.orte, NULL, &robot.orte);
// I didn't know what was the difference between the callback function pointer
type=can_msg topic=can_msg
type=robot_pos topic=est_pos_odo
type=robot_pos topic=est_pos_indep_odo
+type=robot_pos topic=est_pos_best
type=hokuyo_pitch topic=hokuyo_pitch
type=hokuyo_scan topic=hokuyo_scan deadline=1
type=odo_data topic=odo_data deadline=0.3