ImageVerifierCode 换一换
格式:DOC , 页数:16 ,大小:562.04KB ,
资源ID:9813715      下载积分:8 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/9813715.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(2022年Gazebo机器人仿真学习探索笔记六工具和实用程序.doc)为本站上传会员【精***】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

2022年Gazebo机器人仿真学习探索笔记六工具和实用程序.doc

1、Gazebo機器人仿真學習摸索筆記(六)工具和实用程序 Gazebo附带了许多工具和实用程序。 这些教程阐明了这些可用旳工具,以及如何使用它们。 重要有: 1 记录和播放 2 日记过滤 3 应用力/扭矩 4 HDF5数据集 官网简介通俗具体,非常容易,请参照附件。 附件--官方教程 Logging and playback Overview This tutorial explains how to use the Gazebo logging capabilities to record your simulation and then reproduce it a

2、fterwards, using either the GUI or the command line. Gazebo log files Gazebo log files are compressed .log files which contain an initial full description of the whole world, followed by a series of "world states". The initial description contains complete information about everything in the

3、world, from the scene to the entities present. After that, every time something changes in simulation, a new world state is recorded. World states are much simpler, as they only contain information about what changed, such as: Simulation statistics such as the current simulation time and the n

4、umber of physics iterations. Current state of each model in the scene, as well as the state of each link and joint in the model. This includes information such as instantaneous pose, velocity, acceleration and forces. Current pose of each light in the world. Tip: You can find the whole spec

5、 for the world state here. In this tutorial we will record a few log files and then take a peek inside them at the end. Record a log Logging from the GUI Start your simulation. Here, as an example, we have a simple world with a double pendulum. Click on the logging icon on the top right, or

6、 hit Ctrl+D to bring up the Data Logger. You can choose the directory where your log file will be saved by clicking the Browse button. By default, log files Go to the ~/.gazebo/log directory. In this example, we will save it in the ~/logs/double_pendulum/ directory. Click on the red button t

7、o start recording. You should see the number of bytes in your log file increasing on the right. Note: For efficiency, only models and lights which move over time are logged. If your scene is static, the number of bytes in your log file will not increase. This also means that the number of samples

8、 in your log file may be different from the number of iterations in simulation. Click on the red button again to stop logging. Expand Recordings to see the path to the state.log file which was generated. It will be inside a time-stamped directory. Logging from the command line From the comma

9、nd line, it is possible to log the whole simulation from the moment Gazebo starts running until it stops, or to trigger logging from an arbitary time. Logging the whole simulation As an example, you can record the random_velocity.world as follows: gazebo -r --record_path ~/logs/random_velocit

10、y worlds/random_velocity.world You can see a list of all of the available logging options by running gazebo --help. -p [--play] arg: Play a log file. -r [ --record ]: Record a log from the moment Gazebo is opened until it is closed. --record_encoding arg: Compression encoding format for log da

11、ta. The options are zlib (default), bz2 and txt. The log file will only be terminated when Gazebo is closed. You can check the file was created by looking into the path given: $ ls ~/logs/random_velocity/ state.log Logging part of the simulation Gazebo also provides the gz log tool, which can

12、 be used to trigger logging at any moment. While Gazebo is running, open another terminal and run the following to start recording: gz log -d 1 And to stop: gz log -d 0 Check out gz log --help for other options. Play back a log file Once you have a log file, you can replay it visually or

13、 introspect it in several ways. Visualize in GUI Currently, it is not possible to open a log file from the GUI, so playback must be started from the command line. Simply start Gazebo using the -p option to specify a log file, such as the one we recorded earlier: gazebo -u -p ~/logs/double_pen

14、dulum/-01-25T15\:09\:49.677400/gzserver/state.log Tip: The -u option starts the log paused. Gazebo will open in playback mode. You can play, pause, rewind and step through the playback. Use Play / Pause to stop the playback. Use Rewind / Forward to skip to the beginning / end of the file.

15、 Use Step back / Step forward to skip samples. The number of samples skipped each time you press a step button can be changed in the box below. Samples might be any number of iterations and seconds apart. Drag the current time marker and drop it to skip through the log. Input a current time on

16、 the right to skip to that sample. Command line tools As mentioned above, the gz log tool provides several options for introspecting your log file. Check out this tutorial for log filtering, for example. Here, let's quickly go over how you would take a look at the recorded states. We'll us

17、e -s to step through a recorded file, like this: gz log -s -f ~/logs/double_pendulum/-01-25T15\:09\:49.677400/gzserver/state.log You'll see the full initial SDF representation of the world, something like this:

1.0

18、zebo_version>7.0.0~pre1 10622214 43 69

(...) (...)

19、 name='ground_plane'> (...) (...) ]]> --- Press space to continue, 'q' to quit --- As you press space, you will step through the subsequent states. You'll note that the states are more compact

20、and only contain information about what has changed in the world. Here's an example of a state: 43 43 43380

21、l name='double_pendulum_with_base'>1.140 -1.074 -0.000 0.000 -0.000 0.000 1.000 1.000 1.0001.13998 -1.07367 -0.00000 0.00000 0.00000 -0.00042 -0.0000 0.0000 -0.0005 0.0004 0.0030 0.0001

22、se>1.38969 -1.79815 1.41059 -2.45351 0.00000 -0.00042 0.0042 -0.2557 0.2659 1.9694 0.0048 0.0001 1.13999 -1.07367 2.10000 2.33144 -0.00000 -0.00042 0.0063 -0.0008 -0.0005 -0.3739 0.0032 0.0001

23、>0.000 0.000 0.000 0.000 -0.000 0.000 1.000 1.000 1.0000.00000 0.00000 0.00000 0.00000 -0.00000 0.00000 0.0000 0.0000 0.0000 0.0000 -0.0000 0.0000 ]]>

24、 Press space to continue, 'q' to quit --- Note that there's no information for the sun or the ground_plane, since they are not moving. Log filtering Introduction State logs are recordings of world state information from Gazebo. State includes pose, velocity, acceleration, and forces appli

25、ed to all links of all models. Gazebo will only record state information for models that change over time. A state log file contains a header, the initial world description, and a time series of state. Gazebo Log Command line tool Gazebo ships with a logging utility that is accessed via the gz l

26、og command. View the help information using: gz help log or gz log -h Example Usage Tip: Check out the tutorial on logging and playback for an overview of ways to record a log. Step 1: Create a state log file Start by removing old log files rm -rf ~/.gazebo/log/* We will use the PR

27、2 world to create a state log file. Start by running the Gazebo server with the -r command line option gzserver -r worlds/pr2.world After a few seconds, stop the server using ctrl-c. A new time stamped directory should exist in ~/.gazebo/log with one subdirectory and a state.log file. Here

28、 is an example ~/.gazebo/log/-07-25T07\:29\:05.122275/gzserver/state.log You can verify this log file by replaying it in Gazebo. gazebo -p ~/.gazebo/log/*/gzserver/state.log Step 2: Filter a state log file The gz log command line tool provides mechanisms for stepping through a log file and

29、echoing the contents of a log file to screen. The echo to screen feature can be combined with a filter to produce a log file that contains specific information such as just the pose of models and links. Try echoing the recorded state log file to screen. gz log -e -f ~/.gazebo/log/*/gzserver/st

30、ate.log You should see a lot of information scroll by. Now let's remove all velocity, acceleration, and force information from the log file. This will leave just pose information. gz log -e -f ~/.gazebo/log/*/gzserver/state.log --filter *.pose/*.pose The --filter option is a flexible command

31、 line argument to extract information from a log file. It is also possible to filter based on simulation time using a Hz filter. For example, we can output state information at 30 Hz using: gz log -e -f ~/.gazebo/log/*/gzserver/state.log -z 30 These filters can be combined and piped to a file

32、 for playback. This may take some time depending on the size of the state.log. gz log -e -f ~/.gazebo/log/*/gzserver/state.log -z 30 --filter *.pose/*.pose > /tmp/filtered_state.log This log file can then be replayed in Gazebo gazebo -p /tmp/filtered_state.log Applying Force/Torque Introd

33、uction This tutorial will explain how to apply force and/or torque to models during simulation using the graphical user interface. Applying force and torque examples Let's go through an example of applying force and torque to simple models. Open Gazebo and from the insert tab, insert a Simple A

34、rm into the scene. Then, from the top toolbar, insert a box. Make sure the simulation is not paused. Apply force to a link We want to apply force to a specific link in the Simple Arm model. On the World tree, right-click arm_wrist_lift and choose Apply Force/Torque. A dialog will pop up and you'

35、ll see a straight arrow and a curved arrow attach to the arm. On the dialog, write 100 N on the Y field under Force and press Enter, the arm will start rotating slightly. The force was applied in the link's Y direction for a single time-step, which is in the order of milliseconds, thus the need f

36、or such a large force. Apply torque to a link On Apply to link, select arm_elbow_pan, the arrows will move to this link. Under torque, write 100 Nm on the Z field and press Apply Torque a few times to see the arm rotate slightly. Apply force with an offset Now let's apply force to the box.

37、 Right-click the box in the scene and choose Apply Force/Torque. A new dialog will pop up. Under Force, type 1000 N on the X field. Then under Application point, press the up arrow in the Y field until it reaches 1 m, you'll see the arrow oving as you do it. Press Enter a few times to and the box

38、 will rotate. Hold Enter to repeatedly apply the force and make the box spin faster. The interface explained Note: If you apply force and/or torque while the simulation is paused, they will accumulate and be applied all at once when the simulation is unpaused. Force X, Y, Z: Each field specifi

39、es how much force will be applied on that direction. The frame is fixed to the link. Mag: The total magnitude of the force which will be applied, which is the Euclidean norm of the 3 forces above. Changing the magnitude changes the XYZ fields proportionally, maintaining the force direction. Cl

40、ear: Pressing this button will zero the X, Y, Z and Mag fields. Application point: By default, force is applied to the link's center of mass. Here you can edit the X, Y and Z fields to give the force an offset with respect to the link's origin expressed in the link's frame. Select Center of mass

41、again to fill the XYZ fields with its coordinates. Tip: Right-click the model and choose View -> Center of mass to see its position. You might want to also make the model transparent for that. Apply Force: Click this to apply only force for one time step. Keep in mind that time steps are in the

42、order of milliseconds, so relatively large forces are needed in order to apply a significant impulse. Torque X, Y, Z: Each field specifies how much torque will be applied about that axis. The frame is fixed to the link. Mag: The total magnitude of the torque which will be applied, which is th

43、e Euclidean norm of the 3 torques above. Changing the magnitude changes the XYZ fields proportionally, maintaining the torque direction. Clear: Pressing this button will zero the X, Y, Z and Mag fields. Apply Torque: Click this to apply only torque for one time step. Keep in mind that time ste

44、ps are in the order of milliseconds, so relatively large torques are needed in order to apply a significant angular impulse. Note: Torque is always applied about the center of mass. Apply All Force and torque are applied at the same time, i.e. apply a wrench. Hold enter or click it repeatedly t

45、o apply multiple times. Rotation tool The arrows directions will always match the directions specified in the dialog. From the dialog, the direction can be changed by editing the numbers on the XYZ fields. From the scene, the direction can be changed by dragging the pink circles around the arrow

46、s. Tip: The pink circles are attached to the highlighted arrow. To rotate the other arrow, first click it to attach the circles to it and then drag them normally. Instrument HDF5 Datasets Introduction Instrument tools are provided to dump physical data into HDF5 format. The datasets, togethe

47、r with the Benchmark Problems for Multibody Dynamis (BPMD) framework are used to compare different methods in solving multibody systems with bilateral joints and unilateral frictional contacts in an unbiased way. These datasets will help researchers to concentrate on analysis of existing methods and

48、 construction of more accurate solvers, without worrying about implementation of the whole physics engine. Example Usage Install hdf5 sudo apt-get install libhdf5-dev Build Gazebo This HDF5 instrument tool requires building Gazebo from source, with the cmake parameter HDF5_INSTRUMENT [default

49、 False] as True. Learn how to build Gazebo from source cd ~/gazebo mkdir build cd build cmake -DHDF5_INSTRUMENT=True ../ make -j4 sudo make install Collect Datasets Use only gzserver ./test/integration/INTEGRATION_physics_inertia_ratio Use the world file gazebo ~/gazebo/worlds/friction_demo.world Then a file named ode_frames.hdf5 will be generated at the directory exactly where the above command is run. View the HDF5 file hdfvivew is used to open the hdf5 files. You can install it via the terminal: sudo apt-get install hdfview Then open the stored file with: hdfvi

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服