ros仿真启动小龟

1.启动RosMaster(管理Ros中各个节点的"大管家",每次启动Ros时需要首先启动RosMaster)

复制代码
roscore

fang@fang-inspiron-5580:~/ros2/download/rosdistro$ roscore
... logging to /home/fang/.ros/log/6ec2d790-fe1d-11ee-aba8-1c1bb5cdec7c/roslaunch-fang-inspiron-5580-14636.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://fang-inspiron-5580:44325/
ros_comm version 1.14.13

2.启动海龟仿真器turtlesim

复制代码
rosrun turtlesim turtlesim_node

fang@fang-inspiron-5580:~/ros2/download/rosdistro$ rosrun turtlesim turtlesim_node
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 329989
}

3.启动海龟控制器

复制代码
rosrun turtlesim turtle_teleop_key

fang@fang-inspiron-5580:~/ros2/download/rosdistro$ rosrun turtlesim turtle_teleop_key
Reading from keyboard
---------------------------
Use arrow keys to move the turtle. 'q' to quit.

使用键盘的上下左右键,可以控制小龟的移动

安装结束:
安装链接

相关推荐
8***84826 分钟前
如何在Linux中找到MySQL的安装目录
linux·运维·mysql
9***J62816 分钟前
Linux下PostgreSQL-12.0安装部署详细步骤
linux·运维·postgresql
W***83201 小时前
如何在 Ubuntu 22.04 上安装 MySQL
linux·mysql·ubuntu
凌寒111 小时前
Linux(Debain)安装Redis、数据迁移
linux·运维·服务器·redis
7***q6082 小时前
在linux(Centos)中Mysql的端口修改保姆级教程
linux·mysql·centos
用户476022022782 小时前
机器配置免密切root
linux
zzzsde3 小时前
【Linux】基础开发工具(2):vim补充说明&&gcc/g++编译器
linux·运维·服务器
q***65693 小时前
使用Canal将MySQL数据同步到ES(Linux)
linux·mysql·elasticsearch
2301_807583234 小时前
了解python,并编写第一个程序,常见的bug
linux·python
杨德杰4 小时前
Ubuntu设置VNC远程桌面
linux·运维·ubuntu