39 #include <gtest/gtest.h> 42 #include <geometry_msgs/TransformStamped.h> 43 #include <boost/thread/thread.hpp> 74 std::string robot_description;
75 ASSERT_TRUE(n_tilde.
getParam(
"robot_description", robot_description));
83 for (
unsigned int i = 0; i < 100 && !buffer.
canTransform(
"link1",
"link2",
Time()); i++) {
93 EXPECT_NEAR(t.transform.translation.x, 5.0,
EPS);
94 EXPECT_NEAR(t.transform.translation.y, 0.0,
EPS);
95 EXPECT_NEAR(t.transform.translation.z, 0.0,
EPS);
100 int main(
int argc,
char** argv)
102 testing::InitGoogleTest(&argc, argv);
103 ros::init(argc, argv,
"test_two_links_fixed_joint");
105 int res = RUN_ALL_TESTS();
int main(int argc, char **argv)
virtual geometry_msgs::TransformStamped lookupTransform(const std::string &target_frame, const std::string &source_frame, const ros::Time &time, const ros::Duration timeout) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
TEST_F(TestPublisher, test)
~TestPublisher()
Destructor.
TestPublisher()
constructor
bool getParam(const std::string &key, std::string &s) const
virtual bool canTransform(const std::string &target_frame, const std::string &source_frame, const ros::Time &target_time, const ros::Duration timeout, std::string *errstr=NULL) const
ROSCPP_DECL void spinOnce()