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

Is the API and/or binary sources available somewhere? #5

Open
PartiallyObservable opened this issue Feb 4, 2021 · 1 comment
Open

Comments

@PartiallyObservable
Copy link

PartiallyObservable commented Feb 4, 2021

Hello,

I am fairly new to AirSim, sorry if this is the wrong place to ask this question. This project looks outstanding, and I would like to do some research that involves some aspects of what appears to be demonstrated here.

Particularly I have my own method of generating spline trajectories in the form, x(t) = ... y(t) = ... z(t) = ... and also for higher derivatives such as velocity.

I would like to implement something like the moveOnSplineAsync function but with my own trajectory generator, is the source for the environments or the API that relates to this function available somewhere? I was hoping to use it as a kind of template. I would of course credit this project if my research were ever to be published

To clarify what I meant by API, I understand where pip has installed 'client.py' that contains the API calls, but for example the moveOnSpline function simply returns this:

return self.client.call_async(
            "moveOnSpline",
            waypoints,
            add_position_constraint,
            add_velocity_constraint,
            add_acceleration_constraint,
            vel_max,
            acc_max,
            viz_traj,
            viz_traj_color_rgba,
            replan_from_lookahead,
            replan_lookahead_sec,
            vehicle_name,
        )

But I am unsure where that call is actually being implemented/how it is implemented

Thank you

*Edited to clarify

@digiwang
Copy link

@PartiallyObservable, as far as I can tell, the moveOnSpline function is only available within the ADRL binaries. So, you do not have access to that function from within a custom environment, even if you add all the proper imports.

You may have already discovered this, but it looks like there is a trajectory planner available here within the baselines/gtp.py. I know this isn't quite what you were looking for, but maybe it gives you something to start with.

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