项目作者: neka-nat

项目描述 :
Domain randomization for gazebo simulator
高级语言: C++
项目地址: git://github.com/neka-nat/gazebo_domain_randomization.git
创建时间: 2018-03-11T17:21:49Z
项目社区:https://github.com/neka-nat/gazebo_domain_randomization

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Gazebo Domain Randomization

Build Status

https://arxiv.org/abs/1703.06907

Double pendulum demo

result

Shadow hand demo

sr_hand

Run

  1. roslaunch gazebo_domain_randomizer demo.launch

If you want to randomize with external trigger, execute with the following option.

  1. roslaunch gazebo_domain_randomizer demo.launch event_mode:='trigger'

And please execute the following command on another console.

  1. rostopic pub /randomizers/randomizer/trigger std_msgs/Empty "{}" -r 1.0

Settings

To use the randamizers, you need to make the following two settings.

  1. For physics parameters randomization, set physics_plugin (WorldPlugin) in the world file.
  1. <sdf version="1.6">
  2. <world name="default">
  3. <include>
  4. <uri>model://sun</uri>
  5. </include>
  6. <include>
  7. <uri>model://ground_plane</uri>
  8. </include>
  9. ...
  10. <plugin name="physics_plugin" filename="libgazebo_physics_plugin.so"></plugin>
  11. </world>
  12. </sdf>
  1. For visual randomization, you need to load scene_plugin (SystemPlugin) for gzclient. Therefore, please use the gzclient script in gazebo_domain_randomizer package. It configures to load the system plugin in the script.
  1. <launch>
  2. ...
  3. <include file="$(find gazebo_ros)/launch/empty_world.launch">
  4. <arg name="gui" value="false" ></arg>
  5. </include>
  6. <node name="gazebo_gui" pkg="gazebo_domain_randomizer" type="gzclient" respawn="false" output="screen" ></node>
  7. ...
  8. </launch>

Randomizers

Node name Randomized parameter
light_randomizer - light color
- attenuation
shape_randomizer - shape(sphere, box, cylinder)
- shape color
- position(x, y, z)
sky_randomizer - time of day
physics properties randomizer - gravity(x, y, z)
link_properties_randomizer - link mass
joint_properties_randomizer - joint damping
link_visual_properties_randomizer - link color
surface_params_randomizer - link mu1, mu2, mu_torsion
- link poisson ratio