Skip to content

Commit baf6057

Browse files
committed
allow node to be annoymouous
1 parent 9171c40 commit baf6057

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tagslam_ros_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
int main(int argc, char **argv)
3939
{
40-
ros::init(argc, argv, "tagslam_ros");
40+
ros::init(argc, argv, "tagslam_ros", ros::init_options::AnonymousName);
4141

4242
nodelet::Loader nodelet;
4343
nodelet::M_string remap(ros::names::getRemappings());

src/tagslam_ros_zed_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
int main(int argc, char **argv)
3939
{
40-
ros::init(argc, argv, "tagslam_ros");
40+
ros::init(argc, argv, "tagslam_ros", ros::init_options::AnonymousName);
4141

4242
nodelet::Loader nodelet;
4343
nodelet::M_string remap(ros::names::getRemappings());

0 commit comments

Comments
 (0)