course1_ws/my_cpp_pkg/src/template_cpp_node.cpp
2024-12-18 16:26:59 -05:00

20 lines
371 B
C++

#include "rclcpp/rclcpp.hpp"
class MyCustomeNode : public rclcpp::Node // MODIFY NAME
{
public:
MyCustomeNode() : Node("node_name") // MODIFY NAME
{
}
private:
};
int main(int argc, char **argv)
{
rclcpp::init(argc, argv);
auto node = std::make_shared<MyCustomeNode>(); // MODIFY NAME
rclcpp::spin(node);
rclcpp::shutdown();
return 0;
}