Skip to content

[BUG] Setting the throttle in car does not change CarControls #1

@LegendaryGene

Description

@LegendaryGene

Describe the bug
The throttle and brake are not updated, while the car controls are set using the setCarControls() API. The other parameters, like steering and handbrake, are working and do get updated.

To Reproduce
Steps to reproduce the behavior:

  1. Launch a car in the neighborhood scene
  2. Run the default boilerplate code block
  3. Set the throttle and steering using the following code
import airgen
import time
client = airgen_car_0.client
client.confirmConnection()
client.enableApiControl(True)
car_controls = client.getCarControls()
car_controls.throttle = 0.1
car_controls.steering = 1.0
print(car_controls)
client.setCarControls(car_controls)
print(client.getCarControls())
time.sleep(5)
car_controls.throttle = 0.0
car_controls.steering = 0.0
car_controls.brake = 0.0
client.setCarControls(car_controls)

Expected behavior
Using the code above, I expect the car to move ahead full throttle while making a hard left for 5 seconds before stopping.

Metadata

  • Scenario/Scene Name: Neighborhood
  • Robot Type: Delivery Robot, SUV
  • Browser: Chrome
  • OS: Linux (Ubuntu 22.04 LTS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions