#include <mcl.h>
#include <mcl_robot.h>
#include <stdint.h>
#include "mcl_dim.h"
Classes | |
struct | mcl_laser_state |
struct | mcl_laser_measurement |
struct | mcl_laser |
Defines | |
#define | mcl_to_laser(mcl) (struct mcl_laser*)((mcl)->priv) |
#define | MCL_LASER_MAX_MEASURE 10 |
Typedefs | |
typedef double | mcl_thetas [BEACON_CNT] |
Functions | |
struct mcl_model * | mcl_laser_init (struct mcl_laser *l, unsigned count) |
double | mcl_beacon_angle (const struct mcl_laser_state *part, unsigned char color) |
void | mcl_pos2ang (const struct mcl_laser_state *part, mcl_thetas theta, unsigned char cnt, unsigned char color) |
Convert the position to angles between robot's head and reflectors (angles sense is counter-clockwise). |
#define MCL_LASER_MAX_MEASURE 10 |
typedef double mcl_thetas[BEACON_CNT] |
double mcl_beacon_angle | ( | const struct mcl_laser_state * | part, | |
unsigned char | color | |||
) |
void mcl_pos2ang | ( | const struct mcl_laser_state * | part, | |
mcl_thetas | theta, | |||
unsigned char | cnt, | |||
unsigned char | color | |||
) |
Convert the position to angles between robot's head and reflectors (angles sense is counter-clockwise).
part | MCL particle | |
theta | Returned angles to reflectors | |
color | beacon color | |
cnt | beacon count |