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

A new Web API Wanted #117

Open
1180300601 opened this issue Dec 7, 2023 · 3 comments
Open

A new Web API Wanted #117

1180300601 opened this issue Dec 7, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@1180300601
Copy link

I hope to add a web api, which can set the location of the vehicle according to the vehicle name:
[POST] /vehicles/{NAME}

NAME(required): The name of the vehicle to be created.
newValue: The position name of the vehicle started.

The Web API function is the same as the Vehicle driver window in the open-TCSKernelControlCenter, whick can set the loopback options of vehicle position. However my java is so poor that i cannot make the API. Plz give me a hand.

@1180300601
Copy link
Author

Maybe I am wrong about what i am saying above:

the API should be
[POST] /vehicles/{NAME}/commAdapter/position

NAME(required): The name of the vehicle to be created.
newValue: The position name of the vehicle started.

@1180300601
Copy link
Author

image
with this API can only make a web app full

@swltr
Copy link
Member

swltr commented Dec 18, 2023

@1180300601 I agree that it may be useful to have an endpoint for that in the web API. After all, the Java API also provides a method for that (via VehicleService.sendCommAdapterCommand() and an instance of InitPositionCommand). So we'd basically need a way to send adapter commands via the web API. No promises about when that will be implemented, though.

In the meantime: You can automatically initialize a virtual vehicle on a specific point in the model. See the User's Guide about this. Maybe this is an alternative for you?

@swltr swltr added the enhancement New feature or request label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants