What's the difference to name a topic with or without "/"
Hi,
In ros2 programming, sometimes I see code like this:
nh->create_publisher<sensor_msgs::msg::PointCloud2>("/ndt_map", 1000);
the topic name has a prefix of "/"
;
sometimes I see code like this:
nh->create_subscription<sensor_msgs::msg::PointCloud2>("points_raw",
the topic name has no "/"
.
What's the difference?