test/test_talker.cpp
TEST(TESTSuite, testBroadcaster) {
// Creating NodeHandle
  ros::NodeHandle n;
  tf::TransformListener listener;
  tf::StampedTransform transform;
  listener.waitForTransform("/world", "/talk", ros::Time(0), ros::Duration(10));
  listener.lookupTransform("/world", "/talk", ros::Time(0), transform);
  auto x = transform.getOrigin().x();
  EXPECT_EQ(x, 5);
}
/**
 * @brief Test case to check if the broadcaster is broadcasting values.
 *
 * @param none
 * @return none
 */
@brief Test case to check if the broadcaster is broadcasting values.
@param none
@return none
@brief Test case to check if the broadcaster is broadcasting values . @param none @return none
TEST(TESTSuite, testBroadcaster) {
  ros::NodeHandle n;
  tf::TransformListener listener;
  tf::StampedTransform transform;
  listener.waitForTransform("/world", "/talk", ros::Time(0), ros::Duration(10));
  listener.lookupTransform("/world", "/talk", ros::Time(0), transform);
  auto x = transform.getOrigin().x();
  EXPECT_EQ(x, 5);
}
TEST ( TESTSuite , testBroadcaster ) { ros :: NodeHandle n ; tf :: TransformListener listener ; tf :: StampedTransform transform ; listener . waitForTransform ( " " , " " , ros :: Time ( 0 ) , ros :: Duration ( 10 ) ) ; listener . lookupTransform ( " " , " " , ros :: Time ( 0 ) , transform ) ; auto x = transform . getOrigin ( ) . x ( ) ; EXPECT_EQ ( x , 5 ) ; }
@brief Test case to check if the broadcaster is broadcasting values.
@brief Test case to check if the broadcaster is broadcasting values .
// Creating NodeHandle