Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operation process #2

Open
LJJcodeing opened this issue Apr 8, 2024 · 20 comments
Open

Operation process #2

LJJcodeing opened this issue Apr 8, 2024 · 20 comments

Comments

@LJJcodeing
Copy link

Ok, it's me again, nice to have a cordial conversation with you again >^<.
Now the question is, so far I've finished building the airsim environment, ros, and testing the airsim ros package, and have likewise finished building the px4 environment, so how do I use this fusion algorithm next? Or is there any need for caktkin_make?
And can you share the configuration information about the setting.json file of this airsim project?
Looking forward to your guidance, appreciate it b( ̄▽ ̄)d.
Uploading 屏幕截图 2024-04-08 161637.png…

@heleidsn
Copy link
Owner

heleidsn commented Apr 8, 2024

Hi, maybe you can follow the Running in simulation part in the readme file. In short, you have to

  1. launch the simulation
  2. launch the planning algorithms
  3. enjoy

Btw, your screenshots are not showing properly. Please upload a new one.

@LJJcodeing
Copy link
Author

Okay, now I have figured out how to start the execution, but the first error came.
When I was in roslaunch, which was executing the first start_simulator.launch file, it couldn't find my airsim'ros_pkgs.
The error message showed that the search path was incorrect, including the one in px4 that followed.
So where should this path problem be solved?

@LJJcodeing
Copy link
Author

the error such as this:

Resource not found: airsim_ros_pkgs
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/opt/ros/melodic/share
The traceback for the exception was written to the log file

btw,your readme file has something wrong ,the " roslaunch px4_avoidance_airsim start_simulation.launch"should be"roslaunch px4_avoidance_airsim start_simulator.launch

@LJJcodeing
Copy link
Author

error

@LJJcodeing
Copy link
Author

emmm,There seems to be some issues with this workspace as well QAQ
error2
appreciate so much

@heleidsn
Copy link
Owner

heleidsn commented Apr 9, 2024

Maybe you have to source devel/setup.bash before launch in terminal

@LJJcodeing
Copy link
Author

Yes, I've tried this before, but it doesn't seem to be very useful
error3

@LJJcodeing
Copy link
Author

Alight,finally i solve this problem,i create a new "catikin_ws" file to add the ros path.
However,a new issue came .
Did i need the default px4.board?
I can't pip the kconfiglib,
if the repo don't need ,i think i can delete this dependences to solve this problem.
(Actually, I have just started working in this field and often ask silly questions. I hope you don't mind)
Iooking forward your relpy.thanks
error4

@heleidsn
Copy link
Owner

Hi, just saw your issues.

As I didn't work on this repo for a period of time, I am not very sure if kconfiglib is necessary. However, the problem related to Python package is mainly caused by your Python path and configuration. Maybe you should check the Python version used for catkin build.

Anyway, can you run PX4-avoidance individually?

@LJJcodeing
Copy link
Author

Thank you for your reply

As you expected, I found that I was using Python 2.7 during compilation and downloaded kconfiglib to Python 3.8, so the compilation failed. After I solved this problem according to your prompts, other problems occurred. So, I took out catkin_ws separately for px4 and exported the ROS path, and I was able to successfully start simulator. launch (Absolutely good news!)

But when starting "fast planner. launch", some nodes failed to start, and so far I don't have any clue. Do you have any good suggestions?
Also, I haven't tried launching px4 avoidance separately yet

Thanks a lot!

@LJJcodeing
Copy link
Author

such as this
error7

@heleidsn
Copy link
Owner

From my experience, it's better to compile all the ros packages using python3. It's hard to say what's wrong from your screenshot now. However, it's better to run px4_avoidance and fast planner individually before using this repo. Good luck.

@LJJcodeing
Copy link
Author

I used python3.6,but tf2 has some error.
Actually ,I can run airsim+px4+mavros smoothly,but only the fast planner could't recive image and the map
have you have any suggestions?

@LJJcodeing
Copy link
Author

2024-04-29 09-10-44 的屏幕截图

@LJJcodeing
Copy link
Author

2024-04-29 09-11-27 的屏幕截图

@LJJcodeing
Copy link
Author

as you can see the drone can't be contrl by fast planner

@LJJcodeing
Copy link
Author

could you please provide your "airsim setting json",maybe i got sone wrong from there

@LJJcodeing
Copy link
Author

2024-04-30 09-42-28 的屏幕截图
Anyway,it recived .
But,why can't i control it ,what should i do?
is there any commander should i konw,or just ues 2Dnav goal?

@LJJcodeing
Copy link
Author

2024-04-30 09-43-14 的屏幕截图
sorry to bother you
thanks in advance

@heleidsn
Copy link
Owner

From your screenshot, I find there is a tf2 related issue. Maybe you should check with it first. This is mainly caused by the python version and tf2 ros package. Maybe you have to build tf2 with python3 in your workspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants