lebai-motion-control  3.1.6
lebai motion control C interface
example_robot_model.cc
Go to the documentation of this file.
2 #include "create_robot_model.hh"
14 int main(int argc, char **argv)
15 {
16  auto robot_model_config = createLM3Config();
17  lmc_robot_model_t* robot_model = lmc_rm_new();
18  lmc_rm_init(robot_model, &robot_model_config, STRUCT_TYPE_61);
19  lmc_rm_delete(&robot_model);
20  return 0;
21 }
int lmc_rm_init(lmc_robot_model_t *const robot_model, lmc_robot_model_config_t const *const robot_model_config, lmc_robot_model_struct_t struct_type)
Init a robot model using lmc_robot_model_config_t.
void lmc_rm_delete(lmc_robot_model_t **robot_model_addr)
Delete a robot model instance.
lmc_robot_model_t * lmc_rm_new()
Create a robot model instance.
struct lmc_robot_model lmc_robot_model_t
Robot model data structure.
int main(int argc, char **argv)
Example of how to create, init and delete robot_model.
create robot model function.
Robot model related data structures and functions.
lmc_robot_model_config_t createLM3Config()
Create a robot model config instance.