ROS进阶学习手记 3 -- RViz工具的学习2,Markers: Sending Basic Shapes

这篇博客介绍了如何使用ROS的visualization_msgs/Marker消息在rviz中显示基本形状,如立方体、球体、圆柱体和箭头。首先创建名为using_markers的包,然后编写C++代码发送Markers,通过catkin_make构建代码,并运行展示基本形状。同时,指南还涵盖了在rviz中配置固定帧和添加Markers显示。
摘要由CSDN通过智能技术生成

Markers: Sending Basic Shapes (C++)

---------------------------

       我是从这里开始:http://wiki.ros.org/rviz
           在它之下,先玩完这一部分:http://wiki.ros.org/rviz/UserGuide 

           今天要玩这一部分: http://wiki.ros.org/rviz/Tutorials/Markers%3A%20Basic%20Shapes

---------------------------

Description: Shows how to use visualization_msgs/Marker messages to send basic shapes (cube, sphere, cylinder, arrow) to rviz.

2. Intro

Unlike other displays, the Marker Display lets you visualize data in rviz without rviz knowing anything about interpreting that data. Instead, primitive objects are sent to the display throughvisualization_msgs/Marker messages, which let you show things like arrows, boxes, spheres and lines.

This tutorial will show you how to send the four basic shapes (boxes, spheres, cylinders, and arrows). We'll create a program that sends out a new marker every second, replacing the last one with a different shape.

3. Create a Scratch Package

Before getting started, let's create a scratch package to calledusing_markers, somewherein your package path:(exbot@ubuntu:~/catkin_ws/src)


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值