当前位置:网站首页>Topic not received? Try this

Topic not received? Try this

2022-07-07 08:03:00 Absent mindedness

First of all, don't send it only once topic. Its second priority is ros::NodeHandle The problem of . Pay attention to the sending and receiving NodeHandle=n; Be consistent .

No, one is

ros::NodeHandle n;

The other is

ros::NodeHandle n("~");

It will lead to wrong topics for sending and receiving .

Want to know the details , You can refer to

ROS in NodeHandle nh And NodeHandle nh(“~“) difference _ Retro Blue blog -CSDN Blog

原网站

版权声明
本文为[Absent mindedness]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130646040969.html