Giter Site home page Giter Site logo

Simulation problem about autonomous-drone HOT 14 CLOSED

szebedy avatar szebedy commented on July 18, 2024
Simulation problem

from autonomous-drone.

Comments (14)

szebedy avatar szebedy commented on July 18, 2024

Hi @zxp771,

  1. My code is expecting the position updates from svo on the topic /svo/pose_imu, see
    svo_pos_sub_ = nh_->subscribe<geometry_msgs::PoseWithCovarianceStamped>("/svo/pose_imu", 10, &DroneControl::svo_position_cb, drone_control);

    so if you want use an other visual odometry algorithm you're going to have to change this dependency
  2. Looks like the file is not there, maybe you missed initializing the submodules after cloning the repository?
cd ~/catkin_ws
git submodule update --init --recursive

from autonomous-drone.

zxp771 avatar zxp771 commented on July 18, 2024

Hi @szebedy
Thanks for your reply.
1.thanks for your explanation. I will notice it when I use it.
2. I tried your advice it still didn't work.
Here are the folders in my workspace.
image
BTW all the code in your project has been compiled successfully.

from autonomous-drone.

szebedy avatar szebedy commented on July 18, 2024

The command source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/posix_sitl_default executes the file Tools/setup_gazebo.bash in the px4 folder. The only reason I can think of not to have that file is that the px4 submodule has not been initialized.

from autonomous-drone.

zxp771 avatar zxp771 commented on July 18, 2024

Hi @szebedy
I noticed that your introduction said:"Wait until downloading finish correctly, then run"
image
but when I run the
"cd ~/catkin_ws
git submodule update --init --recursive" there is nothing happened.
image

BTW Could I install the PX4 in the same workspace which I install my v-slam algorithm?

from autonomous-drone.

zxp771 avatar zxp771 commented on July 18, 2024

Hi @szebedy
I figure out the problem and tried to run the command in your introduction.
When I run the "roslaunch px4 mavros_posix_sitl.launch" it will show this error:
image
Will it impact other processing?

BTW

  1. I'm confused with the whycon you use, what's the purpose do you use that?
  2. Could I install the PX4 in the same workspace which I install my v-slam algorithm?

from autonomous-drone.

szebedy avatar szebedy commented on July 18, 2024

How did you figure out the problem? Do you have my px4 fork in the px4 folder?

  1. As stated in my description, my research paper and if you googled it, whycon is a visual marker tracker for localizing a visual marker
  2. You can do anything you please

from autonomous-drone.

zxp771 avatar zxp771 commented on July 18, 2024

Hi@szebedy

  1. I install the PX4 as https://github.com/UCM-M143/MavRos-takeoff-n-land said.
    I think maybe I just run the command in the wrong folder.
  2. Yes, I googled the whycon, but I think my problem is how to use it in the simulation environment.
    3,Thanks for your reply.

Thanks for your help and share!It's really useful!

from autonomous-drone.

zxp771 avatar zxp771 commented on July 18, 2024

Hi @szebedy

I noted that you implemented the ewok for collision avoidance.
But I haven't seen any installation introduction for it.
Do you use the project in your code here?
Should I install the ewok by myself first then run your project for simulation?

from autonomous-drone.

szebedy avatar szebedy commented on July 18, 2024

Hi @zxp771,

A modified version of the ewok source code can be found in the trajectory planner folder of my repository. I basically took the classes (includes) from ewok and modified one of their example source files to work with my application.

from autonomous-drone.

zxp771 avatar zxp771 commented on July 18, 2024

Hi@szebedy
Thanks for your reply.
I checked your code and the example you added in the folder.
Thanks for your sharing.

from autonomous-drone.

zxp771 avatar zxp771 commented on July 18, 2024

Hi @szebedy

I want to run the simulation environment on my computer
But I check your intel_aero launch file.
Do I need to install intel realsense package first then run the simulation test?

from autonomous-drone.

szebedy avatar szebedy commented on July 18, 2024

Hi @zxp771

If you want to simulate, launch the simulation launch file. It is still not going to work if you have the official PX4 repository and not my PX4 fork, because I created a simulation environment dedicated for my autonomous drone repository.

Realsense package is only needed if you want to execute the code on the Intel Aero RTF drone. For that you can follow installation instructions here.

from autonomous-drone.

zxp771 avatar zxp771 commented on July 18, 2024

Hi @szebedy
Thanks for your reply and sharing.
One more question: How do you build the Gazebo simulation environment?
I mean if I want to test the different simulation environment(not use your build but use my own one or change the target position on your simulation environment) which part should I modify by myself?

from autonomous-drone.

szebedy avatar szebedy commented on July 18, 2024

Hi @zxp771,

You can change the models and worlds inside the sitl_gazebo submodule found in the folder px4/Tools/sitl_gazebo.

You can find some example commits here that show you how I did it.

from autonomous-drone.

Related Issues (18)

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.