18 #include <gtest/gtest.h> 30 EXPECT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
42 rdt.
skip(
sizeof(
double) * 15);
49 rdt.
skip(
sizeof(
double));
52 EXPECT_TRUE(bp.
empty()) <<
"Did not consume all data";
60 EXPECT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
72 rdt.
skip(
sizeof(
double) * 15);
79 rdt.
skip(
sizeof(
double));
83 EXPECT_TRUE(bp.
empty()) <<
"Did not consume all data";
91 EXPECT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
113 rdt.
skip(
sizeof(
double));
117 rdt.
skip(
sizeof(
double) * 6);
119 rdt.
skip(
sizeof(
double) * 6);
122 rdt.
skip(
sizeof(
double) * 2);
128 EXPECT_TRUE(bp.
empty()) <<
"Did not consume all data";
136 EXPECT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
158 rdt.
skip(
sizeof(
double));
162 rdt.
skip(
sizeof(
double) * 6);
164 rdt.
skip(
sizeof(
double) * 6);
167 rdt.
skip(
sizeof(
double) * 2);
175 EXPECT_TRUE(bp.
empty()) <<
"did not consume all data";
183 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
191 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
199 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
207 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
#define ASSERT_DOUBLE_ARRAY_EQ(fn, name)
std::array< double, 6 > joint_modes
std::array< double, 6 > qdd_target
std::array< double, 6 > i_actual
cartesian_coord_t tool_vector_target
std::array< double, 6 > motor_temperatures
cartesian_coord_t tcp_speed_actual
bool parseWith(BinParser &bp)
BinParser getParser(bool skip=false)
double linear_momentum_norm
bool parseWith(BinParser &bp)
std::array< double, 6 > qd_actual
std::array< double, 6 > qd_target
std::array< double, 6 > joint_modes
bool parseWith(BinParser &bp)
double3_t tool_accelerometer_values
std::array< double, 6 > tcp_force
std::array< double, 6 > q_actual
std::array< double, 6 > m_target
bool parseWith(BinParser &bp)
cartesian_coord_t tool_vector_actual
std::array< double, 6 > i_control
std::array< double, 6 > v_actual
cartesian_coord_t tcp_speed_target
TEST(RTState_V1_6__7, testRandomDataParsing)
double3_t tool_accelerometer_values
std::array< double, 6 > q_target
std::array< double, 6 > i_target