Git Product home page Git Product logo

Comments (6)

spurnvoj avatar spurnvoj commented on May 24, 2024

Hi, you can specify the initial position of drone in simulation using --pos_file parameter. See this session.yml as an example. The initial position can be loaded from csv or yaml file (see pos.yaml).

For changing of GPS coordinate origin for our system, you have to update this file to be in match with origin of your world. Or do it in opposite way and modify origin in your world file to match the one in the our setting. See #22

Edited: updated link to file with GPS coordinate origin

from mrs_uav_system.

Wizzya avatar Wizzya commented on May 24, 2024

How am i able to launch the custom configs into the session.yml files of the tmux examples scripts. For example, i want to spawn the one_drone_gps with the uneven_plane and then add some obstacles inside as shown in the world.simulation.yaml.
So when i set waypoints in this simulation, i noticed that there is a hdg value that reads the height or the terrain with respect to the ground. Will appreciate if i could get guidance to where is this file located.

from mrs_uav_system.

Wizzya avatar Wizzya commented on May 24, 2024

Update: tried inputing this in one_drone_gps by replacing the gazebo world part with:

  • gazebo:
    layout: tiled
    panes:
    - roslaunch mrs_simulation simulation.launch gui:=true world_file:='$(find custom_gazebo_resources)/worlds/custom_world.world'
    - waitForRos; roslaunch mrs_simulation simulation.launch world_name:=world_simulation.yaml gui:=true
    - waitForOdometry; gz camera -c gzclient_camera -f uav1; history -s gz camera -c gzclient_camera -f uav1

But only boots the one drone gps into an empty world
not sure what i did wrong to prevent the config world from spawnning

from mrs_uav_system.

spurnvoj avatar spurnvoj commented on May 24, 2024

Hi, have you seen this https://ctu-mrs.github.io/docs/simulation/custom_world.html? In the example above you are running two times the gazebo simulation with world. Usually, the empty world in the gazebo means that the world file doesn't exist (the path to the world file is not correct) or contains some error.

from mrs_uav_system.

spurnvoj avatar spurnvoj commented on May 24, 2024

@Wizzya Have you managed to run it as you wanted?

from mrs_uav_system.

Wizzya avatar Wizzya commented on May 24, 2024

I can run default simulations thanks for your help. But cuurrently still having trouble with launching custom worlds

from mrs_uav_system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.