官术网_书友最值得收藏!

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 ---
主站蜘蛛池模板: 尚义县| 吉隆县| 西城区| 玉龙| 灵宝市| 神木县| 呼图壁县| 涟水县| 彭水| 翼城县| 胶州市| 平湖市| 桃园市| 阿克苏市| 凯里市| 米易县| 孟州市| 且末县| 仁布县| 江孜县| 黄陵县| 阿图什市| 西峡县| 新安县| 义马市| 恩平市| 黔西县| 大邑县| 鱼台县| 嵊州市| 高清| 鹿邑县| 揭阳市| 和田县| 五指山市| 灵石县| 江孜县| 绩溪县| 张掖市| 庆安县| 上犹县|