[英]How can I visualize rviz publish points?
I want to combine the publish points via ros-rviz by ticking, but I don't know how to do this exactly, which resources should I look at, is there a sample study?我想通过 ros-rviz 通过打勾来组合发布点,但我不知道如何准确地做到这一点,我应该查看哪些资源,是否有样本研究?
What I want is done on frontier exploration ros wiki, but how can I add it on a different rviz?我想要的是在边境探索 ros wiki 上完成的,但是我如何将它添加到不同的 rviz 上? How can I make this visualization by giving it publish point?
我怎样才能通过给它发布点来制作这个可视化?
For this you will need to write a node that constructs a boundary polygon from the points it gets from Rviz Publish point
and then constructs line strip markers from them and publishes it back to Rviz .为此,您需要编写一个节点,该节点从它从 Rviz
Publish point
获得的点构建边界多边形,然后从中构建线带标记并将其发布回 Rviz 。 Inside Rviz you will have to add a Marker
display subscribing to the corresponding topic.在 Rviz 中,您必须添加订阅相应主题的
Marker
显示。 For how this can be done have a look at the C++-node explore_client
inside the frontier_exploration
package as well as the Rviz-configuration turtlebot_exploration.rviz
inside turtlebot_samples
.对于如何可以做到这一点看看在C ++ -节点
explore_client
内部frontier_exploration
包还有Rviz配置turtlebot_exploration.rviz
内turtlebot_samples
。
Alternatively you could also write a Rviz plugin using the same logic.或者,您也可以使用相同的逻辑编写 Rviz 插件。 Tutorials for this can be found here , in particular have a look at
PlantFlagTool
.可以在 此处找到相关教程,特别是查看
PlantFlagTool
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.