
As the picture shows...
I need to display the global path in UE, how can I make it?
If you edit BP_FlyingPawn to include a draw debug line node you should get the result shown in the picture. Here is what I used in my project:

If you edit BP_FlyingPawn to include a draw debug line node you should get the result shown in the picture. Here is what I used in my project:
What I really wanted to show was that once I had the planned trajectory I could visualize it on the AirSim directly, similar to the way one can in rviz.
Your question seems pretty vague. If you want to view a planned trajectory you could just run the simulation with the clock significantly sped up? As far as I know there is no way to visualise a planned trajectory without running the game as the simulator will start when the game runs, and the simulator is what estimates the state of the vehicles (simulator code here)
I updated the api to visualise planned waypoints. I made the changes to worldSimApi, similar to how the printLogMessage functionality was added. I can submit a pull request if this would be useful to add to the api.

thank you! it will be extremely useful! I believe it is the exactly API I want.
I updated the api to visualise planned waypoints. I made the changes to worldSimApi, similar to how the printLogMessage functionality was added. I can submit a pull request if this would be useful to add to the api.
thanks a lot! It's really useful
I have it in my fork: https://github.com/DavidLSmyth/AirSim/
Changes are:
Examples can be found in takeoff.py, new methods are showPlannedWaypoints and simShowDebugLines.
It's slightly messy at the moment as I had some trouble figuring out how to use Vector3r with RPC but I will fix that soon.
I have it in my fork: https://github.com/DavidLSmyth/AirSim/
Changes are:* You can now draw debug lines relative to a vehicle or to the 0,0,0 coordinate in the environment * There is an option to turn a debug tracing line on for the RAV which tracks its path.Examples can be found in takeoff.py, new methods are showPlannedWaypoints and simShowDebugLines.
It's slightly messy at the moment as I had some trouble figuring out how to use Vector3r with RPC but I will fix that soon.
I got an error...
_/vehicles/multirotor/api/MultirotorApiBase.cpp:7:10: fatal error:
'DrawDebugHelpers.h' file not found
What unreal engine version and OS are you using? It's included in multiple files that existed before I made changes so strange that it's only showing that error now

I'm developing on windows 10, visual studio 2017, unreal engine 4.18 so there may be compatibility issues.
What unreal engine version and OS are you using? It's included in multiple files that existed before I made changes so strange that it's only showing that error now
I'm developing on windows 10, visual studio 2017, unreal engine 4.18 so there may be compatibility issues.
sorry for the reply is not timely, I'm developing on Ubuntu 16.04, and UE is 4.20, my computer broke down last weekend...
I will try it again this week
I have it in my fork: https://github.com/DavidLSmyth/AirSim/
Changes are:* You can now draw debug lines relative to a vehicle or to the 0,0,0 coordinate in the environment * There is an option to turn a debug tracing line on for the RAV which tracks its path.Examples can be found in takeoff.py, new methods are showPlannedWaypoints and simShowDebugLines.
It's slightly messy at the moment as I had some trouble figuring out how to use Vector3r with RPC but I will fix that soon.I got an error...
_/vehicles/multirotor/api/MultirotorApiBase.cpp:7:10: fatal error: 'DrawDebugHelpers.h' file not found #include "DrawDebugHelpers.h"_
Hello, I have encountered this problem, have you solved it?
Where is this file "drawdebughelpers.h" from?UE4?So how do you compile airsim?
@ZWYDeveloper I am on a business trip, sadly, I didn't figure it out yet..
I realised that include isn't necessary, just updated my fork to remove it. I have ubuntu on another partition so can have a look if there are more problems
@DavidLSmyth Yes, I succeeded, I send this file before compilation airsim commented out, put the compiled plug-in ue4 compilation in the scene and then opens, the effect of this is I compiled, is nice, but I want to optimize the trajectory of the lines, I need to take a look at you to modify the API, thank you for your open source share, thank you!


@DavidLSmyth Yes, I succeeded, I send this file before compilation airsim commented out, put the compiled plug-in ue4 compilation in the scene and then opens, the effect of this is I compiled, is nice, but I want to optimize the trajectory of the lines, I need to take a look at you to modify the API, thank you for your open source share, thank you!
The changes were pretty straightforward, they are all contained in one commit. Happy to help!
Internal VSTF 7413.
@DavidLSmyth Thank you for sharing your addition to path plotting. I had an error withself.simShowPawnPath(True, 3, 8,vehicle_name)
as follows
msgpackrpc.error.RPCError: rpclib: server could not find function 'simShowPawnPath' with argument count 4.
I have installed your airsim fork to make sure I don't miss anything.
Also do I still need to edit BP_FlyingPawn ?
@DavidLSmyth Thank you for sharing your addition to path plotting. I had an error with
self.simShowPawnPath(True, 3, 8,vehicle_name)
as follows
msgpackrpc.error.RPCError: rpclib: server could not find function 'simShowPawnPath' with argument count 4.
I have installed your airsim fork to make sure I don't miss anything.
Also do I still need to edit BP_FlyingPawn ?
I made some changes recently that may have broken some things, I'll have a look and get back to you when I've figured out what's gone wrong. If you don't need some of the latest functionality you could use one of the older commits (try 129596f7e964d96936b46a54c89b44f6a36bf57c)
Thanks @DavidLSmyth I look forward to that. Regarding the commit that you referenced, it does not seem related. It's an update to the simGetPositionWRTOrigin method.
Hi @AloshkaD ,
I still cannot figure out how to draw the line of the trajectory of multirotor, could you kindly explain more how you complete this ?
Most helpful comment
I updated the api to visualise planned waypoints. I made the changes to worldSimApi, similar to how the printLogMessage functionality was added. I can submit a pull request if this would be useful to add to the api.
