-
 

Package Summary

Tags No category tags.
Version 1.0.9
License BSD-3-Clause
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/aerostack2/aerostack2.git
VCS Type git
VCS Version main
Last Updated 2024-07-18
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Gazebo classic resources

Additional Links

No additional links.

Maintainers

  • CVAR-UPM

Authors

No additional authors.

gazebo_assets

Colletion of AS2 Gazebo assets and scripts.

INDEX

HOW TO RUN: Basic usage

Previously setting AS2 environment, simply run:

${AEROSTACK2_PATH}/as2_simulation_assets/gazebo_assets/scripts/default_run.sh 

or using a config file (see config files) :

${AEROSTACK2_PATH}/as2_simulation_assets/gazebo_assets/scripts/default_run.sh <config-file>

This will run for you gzserver, spawn an iris model, compile and run PX4 SITL rtps and open gzclient.

OPTIONS

Inital configuration aspects as world, drone model, drone pose or adding several drones can be done setting environment variables or using a config file.

ENV VARS

Previously set needed environment variables before launching the script.

  • World
    export PX4_SITL_WORLD=<path-to-world>
    
  • Drone model
    export UAV_MODEL=<model-name>
    
  • Drone pose
    export UAV_X=<float>  # meters
    export UAV_Y=<float>  # meters
    export UAV_Z=<float>  # meters
    export UAV_YAW=<float>  # radians
    

CONFIG FILE

Using a config file lets you to set the simulation environment. You can select a world (or none) and attach to it a number of desired drones with desired model and position. Please pay atention to teh format file, otherwise it may fail.

Example of a config file:

{
    "world": "${AEROSTACK2_PATH}/as2_simulation_assets/gazebo_assets/worlds/frames.world",
    "0": {
        "model": "iris_fpv",
        "pose": [ 0.0, 0.0, 0.0, 1.57 ]
    },
    "1": {
        "model": "iris",
        "pose": [ 3.0, 0.0, 0.0, 1.57 ]
    }
}

MORE OPTIONS

  • Use custom models in world/drone:
    export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:<custom-model-path>
    
  • Run simulation without gzclient (TBD):
    export HEADLESS=1
    
  • Follow drone mode (TBD):
    export PX4_FOLLOW_MODE=1
    
  • Change PX4 GPS origin:
    export PX4_HOME_LAT=28.143971  # degrees
    export PX4_HOME_LON=-16.503213  # degrees
    export PX4_HOME_ALT=0  # meters
    
  • Change PX4 vehicle (TBD):
    export VEHICLE=iris  # typhoon
    
  • Verbose mode:
    export VERBOSE_SIM=1
    

EXAMPLES

Several examples can be found on test folder.

ADVANCED USAGE

If you want to build your own PX4 first, you can also check test_run_sitl script.

CHANGELOG
Could not convert readme:
The source text contains invalid characters for the used encoding US-ASCII

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

Deps Name
ament_cmake
rclcpp
gazebo_ros_pkgs

System Dependencies

Name
python3-jinja2

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged as2_gazebo_classic_assets at Robotics Stack Exchange

No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro jazzy. Known supported distros are highlighted in the buttons above.
No version for distro rolling. Known supported distros are highlighted in the buttons above.
No version for distro noetic. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro foxy. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.
No version for distro kinetic. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.