16 if (example_create_analytic_path_2nd(&path))
37 if (example_expect_ok(status,
"topp2_ra_default_options"))
44 if (example_expect_ok(status,
"copp_reach_set2_backward"))
50 if (example_expect_ok(status,
"copp_reach_set2_bidirectional"))
62 printf(
"reach_set2 done.\n");
64 printf(
"backward-only: a_max.len() = %zu, a_min.len() = %zu\n",
67 printf(
"bidirectional: a_max.len() = %zu, a_min.len() = %zu\n",
70 printf(
"bidirectional bounds @k=0/mid/end: [%.6f, %.6f], [%.6f, %.6f], [%.6f, %.6f]\n",
CoppStatus
C ABI status code returned by COPP FFI functions.
struct CoppPath CoppPath
Opaque C handle for a library-owned Path.
void copp_path_free(struct CoppPath *path)
Release a path handle created by this module.
struct CoppRobot CoppRobot
Opaque C handle for a library-owned robot and constraint buffer.
void copp_robot_free(struct CoppRobot *robot)
Release a robot handle created by copp_robot_create.
void copp_reach_set2_result_free(struct CoppReachSet2Result result)
Release a reachable-set result returned by COPP.
enum CoppStatus topp2_ra_default_options(struct Topp2RaOptions *out_options)
Write default TOPP2-RA options into out_options.
enum CoppStatus copp_reach_set2_bidirectional(struct Topp2Problem problem, struct Topp2RaOptions options, struct CoppReachSet2Result *out_result)
Compute bidirectional TOPP2 reachable intervals.
enum CoppStatus copp_reach_set2_backward(struct Topp2Problem problem, struct Topp2RaOptions options, struct CoppReachSet2Result *out_result)
Compute backward-only TOPP2 reachable intervals.
Reachable intervals returned by TOPP2 reachable-set construction.
struct CoppVecF64 a_min
Lower reachable bound for each station.
struct CoppVecF64 a_max
Upper reachable bound for each station.
size_t len
Number of initialized elements.
double * data
Pointer to the first element, or null for an empty vector.
Borrowed value descriptor for a TOPP2 problem solved from C.
const struct CoppRobot * robot
Robot handle that owns the station-indexed constraint storage.
Options for TOPP2-RA reachability analysis.