Publish ROS message from terminal
来源:互联网 发布:网络硬盘录像机的用途 编辑:程序博客网 时间:2024/06/04 19:35
Here are some simple steps to make you know how to publish a ROS message in terminal by command line:
Step 1: Set up roscore by typing "roscore" in any terminal.
Step 2: Define a ROS message in your ROS workspace, I get a nonsense message ../message/Test.msg, it's made up of
uint8 a
uint8 b
float32 c
int32 d
int64 e
int8 f
Step 3: Open 2 new terminal by terminator or Ctrl+Alt+T, named them left_cmd and right_cmd here.
Step 4: In left_cmd, build the ROS workspace by typing "catkin_make" bellow workspace, then type "rostopic pub /cmd_0 message/Test -- 0 1 2.0 3 4 5" to publish single meaasge out.
Step 5: In roght_cmd, type "rostopic list". If lucky, you can find a topic with the name cmd_0.
Step 6: Check cmd_0, in right_cmd, type "ostopic echo cmd_0", it should come out with:
a: 0
b: 1
c: 2.0
d: 3
e 4
f: 5
notes: In step 4, you can also type "rostopic pub -1 /cmd_0 message/Test -- 0 1 2.0 3 4 5"
this will keep on publishing message for 3 seconds.
- Publish ROS message from terminal
- Publish from Window Live Writer
- ROS Installing from source
- Message from server
- Easily View Images From Terminal in Ubuntu
- ubuntu open terminal from current folder
- Open terminal from nautilus by right click
- ROS的geometry_msgs/PoseWithCovarianceStamped Message 消息格式
- ROS:创建和发布自己的Message
- mp4 video转为ros image message
- ROS-Industrial Simple-Message 安装 etc.
- Nvidia TX1 安装 ROS 后无法使用 Terminal
- sql net message from client
- SQL*Net message from client
- Handler - Get message from WorkerThread
- Android Message Learning from MTK
- How to Customize Mac Terminal Startup Screen Message
- How to publish blog to csdn from onenote
- QNX实时操作系统学习笔记之嵌入式系统(二)
- Jupyter Notebook 快速入门(1)
- Android去掉标题栏的几种方法
- MySQL与Oracle的区别
- iOS iPhone X 适配
- Publish ROS message from terminal
- Basic_Calculator
- Maven:pom配置文件optional含义
- vbox 共享文件夹
- vuejs开发音乐播放器(一):歌手页面
- bzoj 1206: [HNOI2005]虚拟内存
- 如何将从数据库中读出的带有html标签的字符串,让标签起效,显示在前台页面
- STL lb,ub
- spin and mutex lock