This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
rclcpp::QoS qos(rclcpp::KeepLast(1));
qos.transient_local();
auto robotDescriptionSubscriber_=create_subscription<std_msgs::msg::String>("robot_description",qos,std::bind(&Pose2Joint::robotDescriptionCB,this,std::placeholders::_1));
rclcpp::QoS qos(rclcpp::KeepLast(1));
qos.transient_local();
auto robotDescriptionSubscriber_=create_subscription<std_msgs::msg::String>("robot_description",qos,std::bind(&Pose2Joint::robotDescriptionCB,this,std::placeholders::_1));
while(robotDescription_.empty())
{
RCLCPP_WARN_STREAM_SKIPFIRST_THROTTLE(get_logger(),*get_clock(),1000,"Waiting for robot model on /robot_description.");
while(robotDescription_.empty())
{
RCLCPP_WARN_STREAM_SKIPFIRST_THROTTLE(get_logger(),*get_clock(),1000,"Waiting for robot model on /robot_description.");