38 #include <rclcpp/executors/multi_threaded_executor.hpp>
39 #include <rclcpp/node.hpp>
40 #include <rclcpp/utilities.hpp>
43 static const std::string ROBOT_DESCRIPTION =
"robot_description";
45 using namespace std::chrono_literals;
47 int main(
int argc,
char** argv)
49 rclcpp::init(argc, argv);
50 auto node = rclcpp::Node::make_shared(
"print_model_info_to_console");
53 rclcpp::executors::MultiThreadedExecutor executor;
54 executor.add_node(node);
57 rclcpp::sleep_for(500ms);
59 rml.
getModel()->printModelInfo(std::cout);
const moveit::core::RobotModelPtr & getModel() const
Get the constructed planning_models::RobotModel.
void setNodeLoggerName(const std::string &name)
Call once after creating a node to initialize logging namespaces.
int main(int argc, char **argv)