Make node names match their executable name
This commit is contained in:
parent
05d60cb57a
commit
7c3470e668
8 changed files with 8 additions and 8 deletions
|
@ -24,7 +24,7 @@ class PingNode : public rclcpp::Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit PingNode(rclcpp::NodeOptions options)
|
explicit PingNode(rclcpp::NodeOptions options)
|
||||||
: Node("ping_node", options)
|
: Node("test_ping", options)
|
||||||
{
|
{
|
||||||
sub_ = this->create_subscription<std_msgs::msg::String>(
|
sub_ = this->create_subscription<std_msgs::msg::String>(
|
||||||
"pong",
|
"pong",
|
||||||
|
|
|
@ -21,7 +21,7 @@ class PongNode : public rclcpp::Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit PongNode(rclcpp::NodeOptions options)
|
explicit PongNode(rclcpp::NodeOptions options)
|
||||||
: Node("pong_node", options)
|
: Node("test_pong", options)
|
||||||
{
|
{
|
||||||
sub_ = this->create_subscription<std_msgs::msg::String>(
|
sub_ = this->create_subscription<std_msgs::msg::String>(
|
||||||
"ping",
|
"ping",
|
||||||
|
|
|
@ -21,7 +21,7 @@ class PubNode : public rclcpp::Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit PubNode(rclcpp::NodeOptions options)
|
explicit PubNode(rclcpp::NodeOptions options)
|
||||||
: Node("pub_node", options)
|
: Node("test_publisher", options)
|
||||||
{
|
{
|
||||||
pub_ = this->create_publisher<std_msgs::msg::String>(
|
pub_ = this->create_publisher<std_msgs::msg::String>(
|
||||||
"the_topic",
|
"the_topic",
|
||||||
|
|
|
@ -21,7 +21,7 @@ class ServiceNode : public rclcpp::Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit ServiceNode(rclcpp::NodeOptions options)
|
explicit ServiceNode(rclcpp::NodeOptions options)
|
||||||
: Node("service_node", options)
|
: Node("test_service", options)
|
||||||
{
|
{
|
||||||
srv_ = this->create_service<std_srvs::srv::Empty>(
|
srv_ = this->create_service<std_srvs::srv::Empty>(
|
||||||
"service",
|
"service",
|
||||||
|
|
|
@ -24,7 +24,7 @@ class PingNode : public rclcpp::Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit PingNode(rclcpp::NodeOptions options)
|
explicit PingNode(rclcpp::NodeOptions options)
|
||||||
: Node("ping_node", options)
|
: Node("test_service_ping", options)
|
||||||
{
|
{
|
||||||
srv_ = this->create_service<std_srvs::srv::Empty>(
|
srv_ = this->create_service<std_srvs::srv::Empty>(
|
||||||
"pong",
|
"pong",
|
||||||
|
|
|
@ -21,7 +21,7 @@ class PongNode : public rclcpp::Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit PongNode(rclcpp::NodeOptions options)
|
explicit PongNode(rclcpp::NodeOptions options)
|
||||||
: Node("pong_node", options)
|
: Node("test_service_pong", options)
|
||||||
{
|
{
|
||||||
srv_ = this->create_service<std_srvs::srv::Empty>(
|
srv_ = this->create_service<std_srvs::srv::Empty>(
|
||||||
"ping",
|
"ping",
|
||||||
|
|
|
@ -21,7 +21,7 @@ class SubNode : public rclcpp::Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit SubNode(rclcpp::NodeOptions options)
|
explicit SubNode(rclcpp::NodeOptions options)
|
||||||
: Node("sub_node", options)
|
: Node("test_subscription", options)
|
||||||
{
|
{
|
||||||
sub_ = this->create_subscription<std_msgs::msg::String>(
|
sub_ = this->create_subscription<std_msgs::msg::String>(
|
||||||
"the_topic",
|
"the_topic",
|
||||||
|
|
|
@ -23,7 +23,7 @@ class TimerNode : public rclcpp::Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit TimerNode(rclcpp::NodeOptions options)
|
explicit TimerNode(rclcpp::NodeOptions options)
|
||||||
: Node("timer_node", options)
|
: Node("test_timer", options)
|
||||||
{
|
{
|
||||||
is_done_ = false;
|
is_done_ = false;
|
||||||
timer_ = this->create_wall_timer(
|
timer_ = this->create_wall_timer(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue