Enumerations | Functions | Variables
benchmark.cc File Reference
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cstdlib>
#include <iomanip>
#include <sstream>
#include "rdl_benchmark/model_generator.h"
#include "rdl_benchmark/Human36Model.h"
#include "rdl_benchmark/SampleData.h"
#include "rdl_benchmark/Timer.h"
#include "rdl_dynamics/Contacts.h"
#include "rdl_dynamics/Dynamics.h"
#include "rdl_dynamics/Model.h"
#include "rdl_urdfreader/urdfreader.h"
Include dependency graph for benchmark.cc:

Go to the source code of this file.

Enumerations

enum  ContactsMethod { ContactsMethodLagrangian = 0, ContactsMethodRangeSpaceSparse, ContactsMethodNullSpace, ContactsMethodKokkevis }
 

Functions

double contacts_benchmark (int sample_count, ContactsMethod contacts_method)
 
void disable_all_benchmarks ()
 
int main (int argc, char *argv[])
 
void parse_args (int argc, char *argv[])
 
void print_usage ()
 
double run_calc_minv_times_tau_benchmark (ModelPtr model, int sample_count)
 
double run_contacts_kokkevis_benchmark (ModelPtr model, ConstraintSet *constraint_set, int sample_count)
 
double run_contacts_lagrangian_benchmark (ModelPtr model, ConstraintSet *constraint_set, int sample_count)
 
double run_contacts_lagrangian_sparse_benchmark (ModelPtr model, ConstraintSet *constraint_set, int sample_count)
 
double run_contacts_null_space (ModelPtr model, ConstraintSet *constraint_set, int sample_count)
 
double run_CRBA_benchmark (ModelPtr model, int sample_count)
 
double run_forward_dynamics_ABA_benchmark (ModelPtr model, int sample_count)
 
double run_forward_dynamics_lagrangian_benchmark (ModelPtr model, int sample_count)
 
double run_inverse_dynamics_RNEA_benchmark (ModelPtr model, int sample_count)
 
double run_nle_benchmark (ModelPtr model, int sample_count)
 

Variables

int benchmark_model_max_depth = 5
 
bool benchmark_run_calc_minv_times_tau = true
 
bool benchmark_run_contacts = false
 
bool benchmark_run_crba = true
 
bool benchmark_run_fd_aba = true
 
bool benchmark_run_fd_lagrangian = true
 
bool benchmark_run_id_rnea = true
 
bool benchmark_run_nle = true
 
int benchmark_sample_count = 1000
 
bool have_urdfreader = true
 
string model_file = ""
 
bool urdf_floating_base = false
 

Enumeration Type Documentation

Enumerator
ContactsMethodLagrangian 
ContactsMethodRangeSpaceSparse 
ContactsMethodNullSpace 
ContactsMethodKokkevis 

Definition at line 39 of file benchmark.cc.

Function Documentation

double contacts_benchmark ( int  sample_count,
ContactsMethod  contacts_method 
)

Definition at line 245 of file benchmark.cc.

void disable_all_benchmarks ( )

Definition at line 494 of file benchmark.cc.

int main ( int  argc,
char *  argv[] 
)

Definition at line 596 of file benchmark.cc.

void parse_args ( int  argc,
char *  argv[] 
)

Definition at line 505 of file benchmark.cc.

void print_usage ( )

Definition at line 465 of file benchmark.cc.

double run_calc_minv_times_tau_benchmark ( ModelPtr  model,
int  sample_count 
)

Definition at line 151 of file benchmark.cc.

double run_contacts_kokkevis_benchmark ( ModelPtr  model,
ConstraintSet constraint_set,
int  sample_count 
)

Definition at line 227 of file benchmark.cc.

double run_contacts_lagrangian_benchmark ( ModelPtr  model,
ConstraintSet constraint_set,
int  sample_count 
)

Definition at line 173 of file benchmark.cc.

double run_contacts_lagrangian_sparse_benchmark ( ModelPtr  model,
ConstraintSet constraint_set,
int  sample_count 
)

Definition at line 191 of file benchmark.cc.

double run_contacts_null_space ( ModelPtr  model,
ConstraintSet constraint_set,
int  sample_count 
)

Definition at line 209 of file benchmark.cc.

double run_CRBA_benchmark ( ModelPtr  model,
int  sample_count 
)

Definition at line 107 of file benchmark.cc.

double run_forward_dynamics_ABA_benchmark ( ModelPtr  model,
int  sample_count 
)

Definition at line 44 of file benchmark.cc.

double run_forward_dynamics_lagrangian_benchmark ( ModelPtr  model,
int  sample_count 
)

Definition at line 64 of file benchmark.cc.

double run_inverse_dynamics_RNEA_benchmark ( ModelPtr  model,
int  sample_count 
)

Definition at line 87 of file benchmark.cc.

double run_nle_benchmark ( ModelPtr  model,
int  sample_count 
)

Definition at line 131 of file benchmark.cc.

Variable Documentation

int benchmark_model_max_depth = 5

Definition at line 27 of file benchmark.cc.

bool benchmark_run_calc_minv_times_tau = true

Definition at line 34 of file benchmark.cc.

bool benchmark_run_contacts = false

Definition at line 35 of file benchmark.cc.

bool benchmark_run_crba = true

Definition at line 32 of file benchmark.cc.

bool benchmark_run_fd_aba = true

Definition at line 29 of file benchmark.cc.

bool benchmark_run_fd_lagrangian = true

Definition at line 30 of file benchmark.cc.

bool benchmark_run_id_rnea = true

Definition at line 31 of file benchmark.cc.

bool benchmark_run_nle = true

Definition at line 33 of file benchmark.cc.

int benchmark_sample_count = 1000

Definition at line 26 of file benchmark.cc.

bool have_urdfreader = true

Definition at line 19 of file benchmark.cc.

string model_file = ""

Definition at line 37 of file benchmark.cc.

bool urdf_floating_base = false

Definition at line 20 of file benchmark.cc.



rdl_benchmark
Author(s):
autogenerated on Tue Apr 20 2021 02:25:39