position_covariance.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:indoor-localization 作者: luca-morreale 项目源码 文件源码
def publishShape(self, position, rx, ry, tag, namespace):
        marker = Marker()
        marker.header.frame_id = '/map'
        marker.header.stamp = rospy.Time.now()

        marker.ns = namespace
        marker.id = int(tag)
        marker.action = Marker.ADD
        marker.type = self.shape

        self.setPosition(marker, position)
        self.setRadius(marker, rx, ry)
        self.setColor(marker, tag)

        marker.lifetime = rospy.Duration(5)

        self.publisher.publish(marker)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号