question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What subset of the API are we allowed to use?

See original GitHub issue

The API offers many functions. Which ones will be allowed in the competition?

>>> client.sim
client.simCharGetAvailableFaceExpressions(  client.simCharResetBonePose(                client.simCharSetSkinAgeing(                client.simGetGroundTruthEnvironment(        client.simGetVehiclePose(                   client.simSetObjectPose(
client.simCharGetBonePose(                  client.simCharSetBonePose(                  client.simCharSetSkinDarkness(              client.simGetGroundTruthKinematics(         client.simIsPause(                          client.simSetPose(
client.simCharGetBonePoses(                 client.simCharSetBonePoses(                 client.simContinueForTime(                  client.simGetImage(                         client.simListSceneObjects(                 client.simSetSegmentationObjectID(
client.simCharGetFaceExpression(            client.simCharSetFaceExpression(            client.simDestroyObject(                    client.simGetImages(                        client.simLoadLevel(                        client.simSetTimeOfDay(
client.simCharGetHeadRotation(              client.simCharSetFacePreset(                client.simEnableWeather(                    client.simGetObjectPose(                    client.simPause(                            client.simSetVehiclePose(
client.simCharGetSkinAgeing(                client.simCharSetFacePresets(               client.simGetCameraInfo(                    client.simGetPose(                          client.simPrintLogMessage(                  client.simSetWeatherParameter(
client.simCharGetSkinDarkness(              client.simCharSetHeadRotation(              client.simGetCollisionInfo(                 client.simGetSegmentationObjectID(          client.simSetCameraOrientation(   

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
madratmancommented, Aug 7, 2019
  • Throttle is set directly. There is no control for the same.
    yes, anglerates are tried to reach with a P controller. the controller runs till duration is reached, and then rates are set back to zero. however, wrt throttle, drone switches back to hover, and won’t fall out of the sky

  • if you call the command again before duration has passed, it will be replace. if you want it to execute after the previous command finishes, you can do : moveByAngleRatesThrottleAsync(roll_rate, pitch_rate, yaw_rate, throttle, duration, vehicle_name='').join() which will wait for duration to get finished.

Note that for moveByAngleRatesZAsync, Z direction would be stabilized for you.

1reaction
rmstcommented, Aug 7, 2019

How does something like moveByAngleRatesThrottleAsync(roll_rate, pitch_rate, yaw_rate, throttle, duration, vehicle_name='') work precisely?

Are the rates and throttle arguments target values that a PID controller is trying to reach within duration (by modifying the speed of the rotors) or are those values set directly in the simulator and will be held for duration and set to zero afterwards?

Also, what happens if we call the command again before duration has passed? Is it replaced or will it execute after the previous command finishes?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are the types of APIs and their differences? - TechTarget
APIs are broadly accepted and used in web applications. There are four principal types of API commonly used in web-based applications: public, ...
Read more >
Understanding And Using REST APIs - Smashing Magazine
REST determines how the API looks like. It stands for “Representational State Transfer”. It is a set of rules that developers follow when...
Read more >
Types Of API Calls & REST API Protocol - Stoplight
Discussing different types of APIs, alongside protocols and standards, such as Open APIs, Internal APIs, Partner APIs, Compostie APIs, RESTFUL,JSON-RPC, ...
Read more >
Data subset API resources - Hitachi Vantara Knowledge
Data subset type is used to group the related data subsets. Multiple data subsets can have the same data subset type. From 2...
Read more >
REST best practice for getting a subset list - Stack Overflow
Actually, you should be able to leverage OpenSearch quite a bit for your use case. Especially the ability to predefine queries would allow...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found