Giter VIP home page Giter VIP logo

Comments (11)

danielhonies avatar danielhonies commented on July 17, 2024

Does the sim time go up after the initial slow down? Could be normal

from px4-sitl_gazebo-classic.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on July 17, 2024

@eng-86 How are you starting the simulations? I could run 200 vehicles with realtime factor of 0.9 on a regular desktop, so I don't think this is normal

from px4-sitl_gazebo-classic.

eng-86 avatar eng-86 commented on July 17, 2024

@danielhonies @Jaeyoung-Lim The simulation starts with 0.2 factor and continues.

from px4-sitl_gazebo-classic.

eng-86 avatar eng-86 commented on July 17, 2024

I am a PhD student. I am working on a distributive fault tolerant control for multi-UAVs. Each UAV can estimate its local actuator fault and neighbors fault relying on torques and thrust control inputs to each UAV in addition to UAVs' states. I was using a one-year-recent version PX4 with ROS to verify my proposed algorithms. It was working except that the real time scale in GAZEBO persists at 0.2 when trying to simulate four vehicles with an error "ERROR [param] Parameter XRCE_DDS_KEY not found.". This caused an accuracy problem (the algorithm was also validated through matlab simulation). When I upgraded the code to the latest one, the real time problem was solved, but a new problem appeared. My algorithm depends on desired mavros actuator target controls for each UAV to estimate the actuator fault, and it is not published in new versions (I checked it during simulation and according to the discussion also mavlink/mavlink#1784 ). I compared also two log data samples. I found that in old version, the actuator control log was found (Roll, Pitch, Yaw, Thrust (up), Thrust (forward).

from px4-sitl_gazebo-classic.

eng-86 avatar eng-86 commented on July 17, 2024

Additional information: I returned to PX4 13.3 release, I tested 4 UAVs with GAZEBO and ROS with same python script used before. Time factor is 1, but an additional problem appeared: when I did some changes to the code and built it, the changes did not reflect on the results (in other words, no effect of changes). The changes are injecting actuator fault after a time from takeoff. This is not the first time I perform such changes.

from px4-sitl_gazebo-classic.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on July 17, 2024

@eng-86 I was asking how you are starting the sim(which script/launchfile)

from px4-sitl_gazebo-classic.

eng-86 avatar eng-86 commented on July 17, 2024

@Jaeyoung-Lim I started through launch file as follows:
cd PX4-Autopilot
git submodule update --init --recursive
DONT_RUN=1 make px4_sitl_default gazebo-classic
source Tools/simulation/gazebo-classic/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd):$(pwd)/Tools/simulation/gazebo-classic/sitl_gazebo-classic
roslaunch px4 multi_uav_mavros_sitl.launch

even before arming and starting any script,the time factor is 0.2

from px4-sitl_gazebo-classic.

eng-86 avatar eng-86 commented on July 17, 2024

I am struggling with this issue, and it is important to publish my paper. I validated my work through MATLAB, and since I am planning to publish in a good journal (IEEE transaction) they need some real validation.

from px4-sitl_gazebo-classic.

Jaeyoung-Lim avatar Jaeyoung-Lim commented on July 17, 2024

@Jaeyoung-Lim Have you tried running the multivehicle script directly? https://github.com/PX4/PX4-Autopilot/blob/main/Tools/simulation/gazebo-classic/sitl_multiple_run.sh

from px4-sitl_gazebo-classic.

hamishwillee avatar hamishwillee commented on July 17, 2024

Is this resolved @eng-86 ?

from px4-sitl_gazebo-classic.

eng-86 avatar eng-86 commented on July 17, 2024

@hamishwillee @Jaeyoung-Lim , I currently returned to PX4 version v13.3 since as I mentioned in mavlink/mavlink#1784 (comment) and PX4/PX4-Autopilot#22265 (comment) , the ACTUATOR_CONTROL_TARGET message is not published in newer versions and I need it in my research. In v13.3 the simulation is going fine. Exactly in v14.0 beta version, it is published but the simulation time factor is 0.2. After this version, it is not published. I am working on this issue, it is part of my research, and I will give the update when it is ready. Thank you.

from px4-sitl_gazebo-classic.

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.