- Robot Operating System Cookbook
- Kumar Bipin
- 170字
- 2021-06-18 19:20:54
Getting rosinstall
rosinstall is a frequently used command-line tool in ROS that is distributed separately. It enables us to easily download several source trees for the ROS packages with a single command.
This tool is based on Python and can be installed using the following command:
$ sudo apt-get install python-rosinstall
As a basic example, we could run an ROS core on one terminal:
$ roscore
And from another terminal, we can publish a pose message:
$ rostopic pub /dummy geometry_msgs/Pose Position: x: 3.0 y: 1.0 z: 2.0 Orientation: x: 0.0 y: 0.0 z: 0.0 w: 1.0 -r 8
Moreover, we could set ROS_MASTER_URI on our desktop system (in the same network) to point to our ARM Platform (IP 192.168.X.X).
On your laptop, add the following:
$ export ROS_MASTER_URI=http://192.168.1.6:11311
And, we will see pose published from the ARM platform to our laptop.
On your laptop, add the following:
$ rostopic echo -n2 /dummy Position: x: 1.0 y: 2.0 z: 3.0 Orientation: x: 0.0 y: 0.0 z: 0.0 w: 1.0 ---
推薦閱讀
- 數據庫系統原理及MySQL應用教程(第2版)
- MATLAB 2020 從入門到精通
- 名師講壇:Java微服務架構實戰(SpringBoot+SpringCloud+Docker+RabbitMQ)
- 零基礎學Java程序設計
- 精通Python自然語言處理
- JavaScript動態網頁開發詳解
- 數據結構案例教程(C/C++版)
- C#程序設計(項目教學版)
- Android應用開發深入學習實錄
- App Inventor少兒趣味編程動手做
- HTML+CSS+JavaScript網頁制作:從入門到精通(第4版)
- C語言從入門到精通
- 計算語言學導論
- HTML5+CSS3+jQuery Mobile+Bootstrap開發APP從入門到精通(視頻教學版)
- Django 2.0 入門與實踐