3 #include <turtlesim/Pose.h> 12 q.
setRPY(0, 0, msg->theta);
17 int main(
int argc,
char** argv){
18 ros::init(argc, argv,
"my_tf_broadcaster");
19 if (argc != 2){
ROS_ERROR(
"need turtle name as argument");
return -1;};
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spin(Spinner &spinner)
void poseCallback(const turtlesim::PoseConstPtr &msg)
void setRPY(const tfScalar &roll, const tfScalar &pitch, const tfScalar &yaw)
int main(int argc, char **argv)