amino
Lightweight Robot Utility Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
state.h File Reference

Go to the source code of this file.

Classes

struct  aa_ct_state
 State description of a robot. More...
 

Functions

void aa_ct_state_clone (struct aa_mem_region *reg, struct aa_ct_state *dest, struct aa_ct_state *src)
 Creates and allocates a copy of a state. More...
 
void aa_ct_state_dump (FILE *stream, struct aa_ct_state *state)
 Prints out the jointspace components of a state. More...
 
int aa_ct_state_eq (struct aa_ct_state *s1, struct aa_ct_state *s2)
 Compares two states to verify if they are the same, within AA_EPSILON bounds. More...
 

Function Documentation

void aa_ct_state_clone ( struct aa_mem_region reg,
struct aa_ct_state dest,
struct aa_ct_state src 
)

Creates and allocates a copy of a state.

Parameters
regRegion to allocate new arrays from
destDestination state
srcSource state
void aa_ct_state_dump ( FILE *  stream,
struct aa_ct_state state 
)

Prints out the jointspace components of a state.

Parameters
streamFile to print to
stateState to print
int aa_ct_state_eq ( struct aa_ct_state s1,
struct aa_ct_state s2 
)

Compares two states to verify if they are the same, within AA_EPSILON bounds.

Parameters
s1First state
s2Second state
Returns
1 if the same, 0 otherwise.