Let's install turtlesim packages(Ros 仿真包安装)
来源:互联网 发布:网络动漫黑名单第二批 编辑:程序博客网 时间:2024/04/29 18:16
1、In this learning session we will use turtlesim to simulate an actual robot. It will teach us necessary parts of a ROS project in a better way. To install the turtlesim simulator you need to give the command(安装仿真器)
Sudo apt-get install ros-indigo-turtlesim
安装不同的Ros系统用indigo替换成相应的名字,例如:kinetic2、After installing the turtlesim package we will initialize rosdep which is a onetime initialization step. If the ROS works correctly we don’t need to initialize it again. The command will besudo rosdep init
3、you can update the rosdep using the commandrosdep update
4、when you run ROS commands in your terminal, it needs to know where the necessary files are.
To make ROS know about your installation file locations you need to execute the setup.bash file script that ros provides, using the commandsource/opt/ros/indigo/setup.bash
同第一步,安装的是kinetic就用kinetic替换掉indigo
5、It will help you getting rid of the error “command not found”.Let’s start with the turtlesimOpen three separate terminals and execute these three commands(实际验证开两个terminal就可以)
第一个terminal输入命令:
roscore rosrun turtlesim turtlesim_node第二个terminal输入命令:rosrun turtlesim turtle_teleop_key(用键盘方向键控制小乌龟,鼠标一定要点击这个terminal否则不能控制小乌龟)
6、总结three terminals will allow all three commands to execute simultaneously. The first command will start the ROS server,
which will make communication between nodes if needed. Second command will execute a node named turtlesim_node and third will execute another node named turtle_teleop_key.
Both the nodes are from turtlesim package. So it is clear that to run a node we simply need the command
rosrun package-name node-name (命令格式)it should be said that rosrun doesn’t do anything magical here. It is a system of ros which help us to find packages and node from ROS workspace.
If you know the full directory of the nodes you can run it from there directly.
0 0
- Let's install turtlesim packages(Ros 仿真包安装)
- 使用 install.packages() 安装所需的包
- [Fedora Armhf 和 ROS]ROS Indigo 中手动安装工具包 (ros packages)
- Let's get Chocolatey!(包管理器)
- Ubuntu安装ROS Kinetic(Ubuntu install of ROS Kinetic)
- 关于R安装中文分词包安装不上的问题install.packages(\"tm\")
- R实战1:【安装】包的安装与引用install.packages("***") require("****")
- Emacs 添加拓展包 Install packages
- ros基础学习测验——ros-indigo下制作简易小车并利用turtlesim包实现键盘控制
- R语言 解决不能安装包的问题install.packages() cannot open url
- R语言 ERROR in install.packages: 关于不能安装包的错误处理
- Install Packages
- turtlesim
- pip install 安装指定版本的包s
- Ubuntu无法安装rpm包,ubuntu RPM should not be used directly install RPM packages, use Alien instead!
- ros 安装 urdf 包
- ROS安装时packages have unmet dependencies问题
- LINUX 下安装 jdk 问题(please use alien to install rpm packages on Debian )
- mysql设置外部访问
- 喷水装置 I
- 深度学习概述:从感知机到深度网络
- Kubernetes和Spring Cloud哪个部署微服务更好?
- AngularJS指令
- Let's install turtlesim packages(Ros 仿真包安装)
- Dragdealer拖动组件
- Java设计模式--装饰模式
- oj题目回顾(1942)C语言习题5.19--进制转换
- Redis aof日志持久化
- ionic添加cordova插件-Spinner Dialog
- Android 6.0 权限管理
- 解决jsp页面浏览器不兼容,样式变样问题
- Fragment与Activity之间的通信