amino  1.0-beta2
Lightweight Robot Utility Library
state.h File Reference

Go to the source code of this file.

Classes

struct  aa_ct_state
 State description of a robot. More...
 
struct  aa_ct_limit
 Limits on robot state. More...
 

Functions

AA_API struct aa_ct_stateaa_ct_state_alloc (struct aa_mem_region *reg, size_t n_q, size_t n_tf)
 Allocate state from a memory region.
 
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...
 
void aa_ct_state_set_qutr (struct aa_ct_state *state, const double E[7])
 

Function Documentation

◆ aa_ct_state_clone()

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

◆ aa_ct_state_dump()

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

◆ aa_ct_state_eq()

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.