Size: 1965
Comment:
|
← Revision 14 as of 2018-02-08 07:50:46 ⇥
Size: 2259
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 12: | Line 12: |
## description = How to bring up a simulated instance of a Husky robot | ## description = How to bring up a simulated Husky robot using the Gazebo simulator. |
Line 16: | Line 16: |
## next.0.link= [[husky_viz/Tutorials/Visualizing Husky|Visualizing Husky]] | ## next.0.link= [[husky_control/Tutorials/Interfacing with Husky|Interfacing with Husky]] |
Line 28: | Line 28: |
Line 29: | Line 30: |
$ sudo apt-get install ros-indigo-husky-gazebo | $ sudo apt-get install ros-<distro>-husky-simulator |
Line 31: | Line 32: |
2. Run either one of the provided simulation environments: | Using the short name of your ROS distribution instead of <distro>. 2. Set an environmental variable HUSKY_GAZEBO_DESCRIPTION: {{{ $ export HUSKY_GAZEBO_DESCRIPTION=$(rospack find husky_gazebo)/urdf/description.gazebo.xacro }}} 3. Run one of the two provided simulation environments: |
Line 33: | Line 41: |
Line 36: | Line 45: |
Line 37: | Line 47: |
Line 40: | Line 51: |
i. Pick your [[http://gazebosim.org/tutorials/?tut=ros_roslaunch#UsingroslaunchtoOpenWorldModels|own world]] in which to simulate Husky. {{{ |
4. Pick your own world in which to simulate Husky ([[http://gazebosim.org/tutorials/?tut=ros_roslaunch#UsingroslaunchtoOpenWorldModels|Using roslaunch with Gazebo]]). {{{ |
Line 43: | Line 56: |
}}} 3. asfasdfas |
}}} |
![]() |
Simulating Husky
Description: How to bring up a simulated Husky robot using the Gazebo simulator.Keywords: Clearpath Husky
Tutorial Level: BEGINNER
Next Tutorial: Interfacing with Husky
Husky can be simulated in several environments using the husky_gazebo packages. To start a simulation:
- Make sure the simulation package is installed:
$ sudo apt-get install ros-<distro>-husky-simulator
Using the short name of your ROS distribution instead of <distro>.
- Set an environmental variable HUSKY_GAZEBO_DESCRIPTION:
$ export HUSKY_GAZEBO_DESCRIPTION=$(rospack find husky_gazebo)/urdf/description.gazebo.xacro
- Run one of the two provided simulation environments:
Simulate Husky in an empty world. You can add new objects to this world using the Gazebo controls (Gazebo Tutorial - Building a World.
$ roslaunch husky_gazebo husky_empty_world.launch
Simulate Husky in a Clearpath designed world. This is the base environment for the navigation tutorials. It will take some time to start, as the simulator will need to download resources from the Gazebo servers.
$ roslaunch husky_gazebo husky_playpen.launch
Pick your own world in which to simulate Husky (Using roslaunch with Gazebo).
$ roslaunch husky_gazebo husky_empty_world.launch world_name:=worlds/willowgarage.world