30 #include <gtest/gtest.h> 35 #include <geometry_msgs/TransformStamped.h> 45 stor.
rotation_.setValue(0.0, 0.0, 0.0, 1.0);
50 unsigned int runs = 100;
57 for ( uint64_t i = 1; i < runs ; i++ )
93 EXPECT_TRUE(!std::isnan(stor.
rotation_.x()));
94 EXPECT_TRUE(!std::isnan(stor.
rotation_.y()));
95 EXPECT_TRUE(!std::isnan(stor.
rotation_.z()));
96 EXPECT_TRUE(!std::isnan(stor.
rotation_.w()));
99 int main(
int argc,
char **argv){
100 testing::InitGoogleTest(&argc, argv);
101 return RUN_ALL_TESTS();
void setIdentity(geometry_msgs::Transform &tx)
Time & fromNSec(uint64_t t)
TEST(StaticCache, Repeatability)
virtual bool getData(ros::Time time, TransformStorage &data_out, std::string *error_str=0)
Virtual methods.
int main(int argc, char **argv)
virtual bool insertData(const TransformStorage &new_data)
Insert data into the cache.