libkipr  1.0.0
client.h
Go to the documentation of this file.
1 #pragma once
3 #include "audio_note.h"
4 #include "direction.h"
5 #include "euler.h"
6 #include "follow.h"
7 #include "led_animation_type.h"
8 #include "led_color.h"
9 #include "lightring.h"
10 #include "odometry.h"
11 #include "pose.h"
12 #include "stdlib.h"
13 #include "twist.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
26 void create3_audio_append(const Create3AudioNote *const notes, const unsigned count);
27 
35 void create3_audio_play(const Create3AudioNote *const notes, const unsigned count, const int overwrite);
36 
44 void create3_audio_overwrite(const Create3AudioNote *const notes, *const unsigned count);
45 
52 
64 int create3_connect_manual(const char *const host, const unsigned short port);
65 
72 void create3_dock();
73 
84 void create3_drive_arc_degrees(const float radius, const float angle, const float max_linear_speed);
85 
100 void create3_drive_arc_radians(const float radius, const float angle, const float max_linear_speed);
101 
116 void create3_drive_straight(const float distance, const float max_linear_speed);
117 
134 
139 
149 void create3_follow_wall(const Create3Follow follow, const float max_seconds);
150 
157 
184 void create3_led_animation(const Create3LedAnimationType animation_type, const Create3Lightring lightring, const double max_runtime);
185 
195 Create3LedColor create3_led_color(const int r, const int g, const int b);
196 
209 Create3Lightring create3_lightring(const Create3LedColor led0, const Create3LedColor led1, const Create3LedColor led2, const Create3LedColor led3, const Create3LedColor led4, const Create3LedColor led5);
210 
242 void create3_lightring_set(const Create3Lightring lightring);
243 
266 void create3_navigate_to_pose(const Create3Pose pose, const float max_linear_speed, const float max_angular_speed, const int achieve_goal_heading);
267 
284 void create3_navigate_to_position(const double x, const double y, const float max_linear_speed, const float max_angular_speed);
285 
303 void create3_navigate_to_position_with_heading(const double x, const double y, const double theta, const float max_linear_speed, const float max_angular_speed);
304 
316 Create3Odometry create3_odometry_get();
317 
324 
330 
336 
342 
349 
354 
361 
367 
373 
379 Create3Pose create3_pose_get();
380 
389 void create3_rotate_degrees(const float angle, const float max_angular_speed);
390 
402 void create3_rotate_radians(const float angle, const float max_angular_speed);
403 
407 int create3_sensor_bump(int sensor_id);
408 
409 int create3_sensor_cliff(int sensor_id);
410 
411 int create3_sensor_ir(int sensor_id);
412 
420 
427 Create3Twist create3_velocity_get();
428 
436 
444 
450 void create3_velocity_set(const Create3Twist twist);
451 
467 void create3_velocity_set_components(const double linear_x, const double angular_z);
468 
480 
BaudRate
The baudrate to use with the create.
Definition: create.h:659
@ Baud115200
Baudrate of 115200 times per second.
Definition: create.h:661
@ Baud57600
Baudrate of 57600 times per second.
Definition: create.h:660
#define EXPORT_SYM
Definition: export.h:7
EXPORT_SYM int get_create_infrared()
EXPORT_SYM int get_create_llightbump_amt()
EXPORT_SYM int get_create_wall_amt()
EXPORT_SYM void set_create_baud_rate(const enum BaudRate baudRate)
EXPORT_SYM int get_create_rwdrop()
EXPORT_SYM int get_create_rfcliff_amt()
EXPORT_SYM int get_create_lfcliff()
EXPORT_SYM int create_connect_once()
EXPORT_SYM int get_create_normalized_angle()
EXPORT_SYM int get_create_battery_charging_state()
EXPORT_SYM int get_create_lclightbump_amt()
EXPORT_SYM void create_drive_straight(int speed)
EXPORT_SYM int create_connect()
EXPORT_SYM int create_load_song(const unsigned char *song, const unsigned char length, const unsigned char num)
EXPORT_SYM int get_create_cwdrop()
EXPORT_SYM int get_create_song_playing()
EXPORT_SYM void create_spin_block(int speed, int angle)
EXPORT_SYM int create_play_song(const unsigned char num)
EXPORT_SYM int get_create_rflightbump()
EXPORT_SYM int get_create_rlightbump()
EXPORT_SYM int get_create_wall()
EXPORT_SYM void create_disconnect()
EXPORT_SYM void create_clear_serial_buffer()
EXPORT_SYM int get_create_lfcliff_amt()
EXPORT_SYM void create_passive()
EXPORT_SYM void set_create_total_angle(int angle)
EXPORT_SYM int get_create_battery_capacity()
EXPORT_SYM int get_create_battery_charge()
EXPORT_SYM void create_drive(int speed, int radius)
EXPORT_SYM int get_create_rbump()
EXPORT_SYM int get_create_rclightbump_amt()
EXPORT_SYM int get_create_lcliff_amt()
EXPORT_SYM int create_read_block(char *data, int count)
EXPORT_SYM int get_create_rcliff_amt()
EXPORT_SYM int get_create_rlightbump_amt()
EXPORT_SYM void set_create_distance(int dist)
EXPORT_SYM int get_create_rcliff()
EXPORT_SYM int get_create_lflightbump()
EXPORT_SYM int get_create_rflightbump_amt()
EXPORT_SYM int get_create_lclightbump()
EXPORT_SYM int _create_get_raw_encoders(long *lenc, long *renc)
EXPORT_SYM int get_create_lwdrop()
EXPORT_SYM void create_full()
EXPORT_SYM int get_create_advance_button()
EXPORT_SYM void create_safe()
EXPORT_SYM int get_create_song_number()
EXPORT_SYM void create_drive_direct(int l_speed, int r_speed)
EXPORT_SYM int get_create_lbump()
EXPORT_SYM void create_spin_CCW(int speed)
EXPORT_SYM void create_stop()
EXPORT_SYM int get_create_vwall()
EXPORT_SYM int get_create_distance()
EXPORT_SYM void create_spin_CW(int speed)
EXPORT_SYM int get_create_total_angle()
EXPORT_SYM int get_create_rclightbump()
EXPORT_SYM int get_create_lflightbump_amt()
EXPORT_SYM int get_create_battery_temp()
EXPORT_SYM int get_create_lcliff()
EXPORT_SYM int get_create_play_button()
EXPORT_SYM void create_write_byte(char byte)
EXPORT_SYM void set_create_normalized_angle(int angle)
EXPORT_SYM enum BaudRate get_create_baud_rate()
EXPORT_SYM int get_create_mode()
EXPORT_SYM int get_create_llightbump()
EXPORT_SYM int get_create_rfcliff()