Classes | Macros | Functions
model-fixture.hpp File Reference
#include "pinocchio/multibody/model.hpp"
#include "pinocchio/multibody/data.hpp"
#include "pinocchio/multibody/sample-models.hpp"
#include "pinocchio/parsers/urdf.hpp"
#include <boost/optional.hpp>
#include <boost/none.hpp>
#include <benchmark/benchmark.h>
#include <Eigen/Core>
#include <iostream>
Include dependency graph for model-fixture.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ExtraArgs
 Store custom command line arguments. More...
 
struct  ModelFixture
 

Macros

#define PINOCCHIO_BENCHMARK_MAIN()   PINOCCHIO_BENCHMARK_MAIN_WITH_SETUP(ModelFixture::GlobalSetUp)
 
#define PINOCCHIO_BENCHMARK_MAIN_WITH_SETUP(GLOBAL_SETUP)
 

Functions

boost::optional< ExtraArgsparseExtraArgs (int argc, char **argv)
 

Macro Definition Documentation

◆ PINOCCHIO_BENCHMARK_MAIN

#define PINOCCHIO_BENCHMARK_MAIN ( )    PINOCCHIO_BENCHMARK_MAIN_WITH_SETUP(ModelFixture::GlobalSetUp)

Definition at line 155 of file model-fixture.hpp.

◆ PINOCCHIO_BENCHMARK_MAIN_WITH_SETUP

#define PINOCCHIO_BENCHMARK_MAIN_WITH_SETUP (   GLOBAL_SETUP)
Value:
int main(int argc, char ** argv) \
{ \
char arg0_default[] = "benchmark"; \
char * args_default = arg0_default; \
if (!argv) \
{ \
argc = 1; \
argv = &args_default; \
} \
::benchmark::Initialize(&argc, argv); \
\
/* It's important to report errors so typos on google benchmark arguments */ \
/* are detected. */ \
auto extra_args = parseExtraArgs(argc, argv); \
if (!extra_args) \
{ \
return 1; \
} \
GLOBAL_SETUP(*extra_args); \
\
::benchmark ::RunSpecifiedBenchmarks(); \
::benchmark ::Shutdown(); \
return 0; \
} \
int main(int, char **)

Definition at line 126 of file model-fixture.hpp.

Function Documentation

◆ parseExtraArgs()

boost::optional<ExtraArgs> parseExtraArgs ( int  argc,
char **  argv 
)
inline

Definition at line 90 of file model-fixture.hpp.

plot.main
def main(list[str] args)
Definition: plot.py:193
parseExtraArgs
boost::optional< ExtraArgs > parseExtraArgs(int argc, char **argv)
Definition: model-fixture.hpp:90
ModelFixture::MODEL
static pinocchio::Model MODEL
Definition: model-fixture.hpp:86
pinocchio::ModelTpl< context::Scalar, context::Options >


pinocchio
Author(s):
autogenerated on Wed Apr 16 2025 02:41:52