38 #ifndef AMINO_CT_TRAJ_INTERNAL_HPP
39 #define AMINO_CT_TRAJ_INTERNAL_HPP
50 typedef int (*aa_ct_seg_eval_fun)(
struct aa_ct_seg *seg,
75 void aa_ct_seg_list_add_cx(
struct aa_ct_seg_list *list,
76 aa_ct_seg_eval_fun
eval,
86 struct aa_ct_pt_list {
89 amino::RegionList<struct aa_ct_pt *>::type list;
91 aa_ct_pt_list(
struct aa_mem_region *_reg) : alloc(_reg), list(alloc) {
95 ~aa_ct_pt_list(
void) {
101 struct aa_ct_seg_list {
104 amino::RegionList<struct aa_ct_seg *>::type list;
105 amino::RegionList<struct aa_ct_seg *>::iterator it;
119 ~aa_ct_seg_list(
void) {
An STL allocator that allocates out of a memory region.
AA_API void aa_mem_region_init(aa_mem_region_t *region, size_t size)
Initialize memory region with an initial chunk of size bytes.
AA_API void aa_mem_region_destroy(aa_mem_region_t *region)
Destroy memory region freeing all chunks.
void * cx
Segment context.
int(* eval)(struct aa_ct_seg *seg, struct aa_ct_state *state, double t)
Evaluate function.
struct aa_ct_seg * next
Links to next and previous segments.
int type
Type label for disambiguation.
State description of a robot.
Data Structure for Region-Based memory allocation.
void aa_ct_seg_list_add(struct aa_ct_seg_list *list, struct aa_ct_seg *seg)
Add a reference to a segment to a segment list.