Comments (4)
Seems like I forgot to update the docstring for that function, my bad. However, I recommend using the more powerful ai_set_script
function which uses BeamNG.drive's ScriptAI for driving around. The main difference to _line
is that, instead of position and speed, you define a line by a position and a target time, which also allows you to specify lines where the vehicle stops at a certain point — something not really possible with ai_set_line
. There's an example of how to use ai_set_script
here: https://github.com/BeamNG/BeamNGpy/blob/master/examples/ai_line.py
With api reference here: https://beamngpy.readthedocs.io/en/latest/api/beamngpy.html#beamngpy.vehicle.Vehicle.ai_set_script
from beamngpy.
Actually, I want to drive the vehicle between the polyline at a constant speed. It seems to me that ai_set_line
will be the most appropriate solution in my case. I don't want to define the time to reach the destination point. I believe that it should be automatically handled by BeamNG itself. if possible, please update the documentation of ai_set_line
so I can run both examples of ai_set_script.
and ai_set_line
What are the changes you have made it ai_set_line
.
Is there anything in BeamNG that leaves the car in the free state. I mean, let suppose the car is driving at 35 kph with the throttle, braking and suddenly I want to leave the paddles and steering to see where the car can go without the interference of human being.
from beamngpy.
The documentation is already updated: https://beamngpy.readthedocs.io/en/latest/api/beamngpy.html#beamngpy.vehicle.Vehicle.ai_set_line
There is also the old version of the example above: https://github.com/BeamNG/BeamNGpy/blob/c6215295a942f00388062d8525f20e7fc59159d1/examples/ai_line.py
To clear your vehicle inputs, you can simply send 0 for the respective values: vehicle.control(throttle=0, steering=0, brake=0, parkingbrake=0)
from beamngpy.
hello friends~I loaded the gridsmall map and paved a simple road. I want the vehicle to run according to my trajectory. Why does the vehicle not move?
from beamngpy.
Related Issues (20)
- BeamNG crashes with unavailable rendering device message. HOT 6
- How to hide vehicles before shooting? HOT 3
- ScenarioObject name cannot be Empty or None HOT 4
- Documentation car call names and maps call names HOT 1
- How to increase the randomness of traffic flow? HOT 1
- The ai model that beamng provides for user can avoid background vehicle? HOT 1
- Get annotated objects in map
- camera doern't work in windows os,beamngpy=1.28,beamng.tech=0.31.3.0 HOT 1
- Socket message transfer very slow HOT 2
- Can the offical api provide user with the function that exports the video that vehicle runs on the road? HOT 1
- How to properly render Lane Markings HOT 1
- The level template_tech is missing the road_invisible material HOT 1
- I dont find Road api's specific parameter options and traffic light api in BeamNGpy documentation.
- Misaligned timestamps between Timer sensor and Automated Sensors
- Setting vehicle part config causes downstream `ConnectionRefusedError: [WinError 10061]` HOT 1
- Running BeamNG remotely: Error when running BeamNG via Remote Desktop Control Connection, no start with SSH HOT 2
- How put the information on Windshield Display (WSD) or Head-up Display (HUD)? HOT 2
- The BeamNG.tech License limitation HOT 2
- The Game Does Not Start. HOT 2
- How to quickly determine the location coordinates where a vehicle can be placed on a map? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beamngpy.