1 #ifndef _RDL_BENCHMARK_SAMPLE_DATA_H__ 2 #define _RDL_BENCHMARK_SAMPLE_DATA_H__ 26 for(
int si = 0; si <
count; si++)
90 for(
int si = 0; si <
count; si++)
92 q[si].resize(dof_count);
93 qdot[si].resize(dof_count);
94 qddot[si].resize(dof_count);
95 tau[si].resize(dof_count);
97 for(
int i = 0; i < dof_count; i++)
99 q[si][i] = (
static_cast<double>(rand()) / static_cast<double>(RAND_MAX)) * 2. - 1.;
100 qdot[si][i] = (
static_cast<double>(rand()) / static_cast<double>(RAND_MAX)) * 2. - 1.;
101 qddot[si][i] = (
static_cast<double>(rand()) / static_cast<double>(RAND_MAX)) * 2. - 1.;
102 tau[si][i] = (
static_cast<double>(rand()) / static_cast<double>(RAND_MAX)) * 2. - 1.;
RobotDynamics::Math::VectorNd * qddot
RobotDynamics::Math::VectorNd * tau
SampleData & operator=(const SampleData &data)
RobotDynamics::Math::VectorNd * q
void fillRandom(int dof_count, int sample_count)
SampleData(const SampleData &data)
RobotDynamics::Math::VectorNd * qdot