中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865
Learning ROS for Robotics Programming Second Edition学习笔记(一) indigo v-rep
安装系统ubuntu14.04和ros indigo。
注意:环境配置。
ROS体系结构与概念
注意理解:
启动核,roscore.
文件系统层,包,包清单,消息,服务,工作空间等。
运算图层,节点,主,消息,主题,服务,包等。
Nodes: rosun, rosnode, Topics: rostopic, Services: rosservice, Messages: rosmsg, Bags: rosbag.
快速查找:rospack find, rosstack find, rosls, roscd.
建立自己工作空间(workspace), 非常重要,mkdir /catkin_ws/src, catkin_init_workspace, catkin_make.
新建包和元包,catkin_create_pkg.
编译,catkin_make.
小乌龟例子回顾
常用:roscore, rosnode, rosrun, rostopic, rosmsg, rosservice, rosparam, roscd, roslaunch.
--roscore
--rosrun turtlesim turtlesim_node
--rosrun turtlesim turtle_teleop_key
--rosnode list
/rosout
/teleop_turtle
/turtlesim
--rostopic list
/rosout
/rosout_agg
/turtle1/cmd_vel
/turtle1/color_sensor
/turtle1/pose
--rostopic type /turtle1/cmd_vel
geometry_msgs/Twist
--rosmsg show geometry_msgs/Twist
geometry_msgs/Vector3 linear
float64 x
float64 y
float64 z
geometry_msgs/Vector3 angular
float64 x
float64 y
float64 z
--rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
--rostopic pub /turtle1/cmd_vel geometry_msgs/Twist -r 1 -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
--rosservice list
/clear
/kill
/reset
/rosout/get_loggers
/rosout/set_logger_level
/spawn
/teleop_turtle/get_loggers
/teleop_turtle/set_logger_level
/turtle1/set_pen
/turtle1/teleport_absolute
/turtle1/teleport_relative
/turtlesim/get_loggers
/turtlesim/set_logger_level
--rosservice call /spawn 3 3 0.2 "new_turtle"
--rosparam list
/background_b
/background_g
/background_r
/rosdistro
/rosversion
/run_id
--rosparam set /background_b 100
------------------------------------------------------------------------------------------------------------------------------------------------
V-Rep例子
--roscore
--./vrep.sh
--rosnode list
/rosout
/vrep
--rosservice list
/rosout/get_loggers
/rosout/set_logger_level
/vrep/get_loggers
/vrep/set_logger_level
/vrep/simRosAddStatusbarMessage
/vrep/simRosAuxiliaryConsoleClose
/vrep/simRosAuxiliaryConsoleOpen
/vrep/simRosAuxiliaryConsolePrint
/vrep/simRosAuxiliaryConsoleShow
/vrep/simRosBreakForceSensor
/vrep/simRosClearFloatSignal
/vrep/simRosClearIntegerSignal
/vrep/simRosClearStringSignal
/vrep/simRosCloseScene
/vrep/simRosCopyPasteObjects
/vrep/simRosCreateDummy
/vrep/simRosDisablePublisher
/vrep/simRosDisableSubscriber
/vrep/simRosDisplayDialog
/vrep/simRosEnablePublisher
/vrep/simRosEnableSubscriber
/vrep/simRosEndDialog
/vrep/simRosEraseFile
/vrep/simRosGetAndClearStringSignal
/vrep/simRosGetArrayParameter
/vrep/simRosGetBooleanParameter
/vrep/simRosGetCollisionHandle
/vrep/simRosGetDialogInput
/vrep/simRosGetDialogResult
/vrep/simRosGetDistanceHandle
/vrep/simRosGetFloatSignal
/vrep/simRosGetFloatingParameter
/vrep/simRosGetInfo
/vrep/simRosGetIntegerParameter
/vrep/simRosGetIntegerSignal
/vrep/simRosGetJointMatrix
/vrep/simRosGetJointState
/vrep/simRosGetLastErrors
/vrep/simRosGetModelProperty
/vrep/simRosGetObjectChild
/vrep/simRosGetObjectFloatParameter
/vrep/simRosGetObjectGroupData
/vrep/simRosGetObjectHandle
/vrep/simRosGetObjectIntParameter
/vrep/simRosGetObjectParent
/vrep/simRosGetObjectPose
/vrep/simRosGetObjectSelection
/vrep/simRosGetObjects
/vrep/simRosGetStringParameter
/vrep/simRosGetStringSignal
/vrep/simRosGetUIButtonProperty
/vrep/simRosGetUIEventButton
/vrep/simRosGetUIHandle
/vrep/simRosGetUISlider
/vrep/simRosGetVisionSensorDepthBuffer
/vrep/simRosGetVisionSensorImage
/vrep/simRosLoadModel
/vrep/simRosLoadScene
/vrep/simRosLoadUI
/vrep/simRosPauseSimulation
/vrep/simRosReadCollision
/vrep/simRosReadDistance
/vrep/simRosReadForceSensor
/vrep/simRosReadProximitySensor
/vrep/simRosReadVisionSensor
/vrep/simRosRemoveModel
/vrep/simRosRemoveObject
/vrep/simRosRemoveUI
/vrep/simRosSetArrayParameter
/vrep/simRosSetBooleanParameter
/vrep/simRosSetFloatSignal
/vrep/simRosSetFloatingParameter
/vrep/simRosSetIntegerParameter
/vrep/simRosSetIntegerSignal
/vrep/simRosSetJointForce
/vrep/simRosSetJointPosition
/vrep/simRosSetJointState
/vrep/simRosSetJointTargetPosition
/vrep/simRosSetJointTargetVelocity
/vrep/simRosSetModelProperty
/vrep/simRosSetObjectFloatParameter
/vrep/simRosSetObjectIntParameter
/vrep/simRosSetObjectParent
/vrep/simRosSetObjectPose
/vrep/simRosSetObjectPosition
/vrep/simRosSetObjectQuaternion
/vrep/simRosSetObjectSelection
/vrep/simRosSetSphericalJointMatrix
/vrep/simRosSetStringSignal
/vrep/simRosSetUIButtonLabel
/vrep/simRosSetUIButtonProperty
/vrep/simRosSetUISlider
/vrep/simRosSetVisionSensorImage
/vrep/simRosStartSimulation
/vrep/simRosStopSimulation
/vrep/simRosSynchronous
/vrep/simRosSynchronousTrigger
/vrep/simRosTransferFile
--rostopic list
/rosout
/rosout_agg
/tf
/vrep/info
启动仿真
--rosservice call /vrep/simRosStartSimulation
result: 1
停止仿真
--rosservice call /vrep/simRosStopSimulation
启动场景
Test.ttt
--rostopic list
/rosout
/rosout_agg
/tf
/vrep/Vision_sensor_0
/vrep/Vision_sensor_0/compressed
/vrep/Vision_sensor_0/compressed/parameter_descriptions
/vrep/Vision_sensor_0/compressed/parameter_updates
/vrep/Vision_sensor_0/compressedDepth
/vrep/Vision_sensor_0/compressedDepth/parameter_descriptions
/vrep/Vision_sensor_0/compressedDepth/parameter_updates
/vrep/Vision_sensor_0/theora
/vrep/Vision_sensor_0/theora/parameter_descriptions
/vrep/Vision_sensor_0/theora/parameter_updates
/vrep/base/pose
/vrep/camera_info
/vrep/end_eff/pose
/vrep/imu
/vrep/info
/vrep/quadrotor_0/pose
/vrep/quadrotor_0/twist
/vrep/viper_0/jointStatus
ROS查看四旋翼虚拟摄像头
--rosrun image_view image_view image:=/vrep/Vision_sensor_0
--rosservice call /vrep/simRosStartSimulation
i.youku.com/zhangrelay
Learning ROS for Robotics Programming Second Edition学习笔记(一) indigo v-rep的更多相关文章
-
Learning ROS for Robotics Programming Second Edition学习笔记(六) indigo xtion pro live
中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 Learning ROS for Robotics Pr ...
-
Learning ROS for Robotics Programming Second Edition学习笔记(五) indigo computer vision
中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 Learning ROS for Robotics Pr ...
-
Learning ROS for Robotics Programming Second Edition学习笔记(四) indigo devices
中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 Learning ROS for Robotics Pr ...
-
Learning ROS for Robotics Programming Second Edition学习笔记(三) indigo rplidar rviz slam
中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 Learning ROS for Robotics Pr ...
-
Learning ROS for Robotics Programming Second Edition学习笔记(二) indigo tools
中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 Learning ROS for Robotics Pr ...
-
Learning ROS for Robotics Programming Second Edition学习笔记(十) indigo Gazebo rviz slam navigation
中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 moveit是书的最后一章,由于对机械臂完全不知,看不懂 ...
-
Learning ROS for Robotics Programming Second Edition学习笔记(七) indigo PCL xtion pro live
中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 Learning ROS forRobotics Pro ...
-
Learning ROS for Robotics Programming Second Edition学习笔记(九) indigo Gazebo rviz slam navigation
中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 书中三维环境gazebo,slam的仿真例子 --$ r ...
-
Learning ROS for Robotics Programming Second Edition学习笔记(三) 补充 hector_slam
中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 Learning ROS for Robotics Pr ...
随机推荐
-
C++初始化列表
C++初始化列表 定义一个类对象时,常常使用初始化列表实例化一个对象,在进入构造函数函数体之前对成员变量完成初始化操作.普通成员变量既可以在初始化中初始化,也可以在函数体重赋值:const成员变量只能 ...
-
Wix打包相关资源
1.自定义安装界面(WixUI_Custom.wxs) <?xml version="1.0" encoding="UTF-8"?> <Wix ...
-
如何在Docker中部署DzzOffice
一.一些背景 之前研究Docker很久了,并且在公司内部实际使用起来了,目前分两种场景使用Docker 1.作为PAAS,提供一致,统一的编译/测试环境: 2.作为虚拟机,直接分配给新来的开发人员使用 ...
-
Qt&#160;Opencv&#160;在Linux下摄像头简单示例(转)
下面写的文章也许网上也有类似的,但是大多数都没有给出思路及背景,让初学者每次都只能学到一点皮毛,不少知识需要大量搜索零碎地拼凑起来.题外话,虽然现在是碎片化信息时代,但正是这样信息整合能力也显得非常重 ...
-
统计学习方法 三 kNN
KNN (一)KNN概念: K近邻算法是一种回归和分类算法,这主要讨论其分类概念: K近邻模型三要素: 1,距离: 2,K值的选择: K值选择过小:模型过复杂,近似误差减小,估计误差上升,出现过拟合 ...
-
mapper加载的3种方法
<!-- mapper加载有3种方法: 1:通过resource或url加载单个mapper 2:通过mapper接口类名加载单个mapper 3:通过package批量加载多个mapper(推 ...
-
python numpy笔记(重要)
1.np.array 的shape (2,)与(2,1)含义 ndarray.shape:数组的维度.为一个表示数组在每个维度上大小的整数元组.例如二维数组中,表示数组的“行数”和“列数”. ndar ...
-
Python之路【第八篇】:面向对象的程序设计
阅读目录 一 面向对象的程序设计的由来二 什么是面向对象的程序设计及为什么要有它三 类和对象3.1 什么是对象,什么是类3.2 类相关知识3.3 对象相关知识3.4 对象之间的交互3.5 类名称空间与 ...
-
UVALive - 7263 Today Is a Rainy Day(bfs)
原题链接 题意 给两个等长的只含数字1,2,3,4,5,6的字符串s(|s|≤110),有两种操作: - 把一个位置的数字换成另一个数字,换成的数字也只能是1到6- 把这个字符串中相同的数字都换成另一 ...
-
python2中在sqlite3中插入中文
# -*- coding: utf-8 -*- import sqlite3 conn = sqlite3.connect('SWC_Perf_Info.db') cur = conn.cursor( ...