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.

Openpilot in Simulation Mode is not using IMU data.

See original GitHub issue

Describe the bug

When running the bridge.py script to bridge the Carla server, in the IMU callback, the sensorEvent packet does not set a timestamp, and hence in locationd, the packet is rejected as it checks the timestamp to 0, and rejects the packet as it assumes there is no valid data.

I am not sure if in simulation mode this is the expected behaviour or a bug and wanted to point it out.

A possible solution would be to extend common.clock.pyx to include a nanosec_since_boot() function as the carla server maintains simulation time apart from linux.

OS Version

Ubuntu 20.04

openpilot version or commit

No response

Additional info

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
KestonDcommented, Apr 4, 2022

Can I start working on an issue or does it need to be assigned first ?

1reaction
rahul-arasikerecommented, Aug 19, 2022

You need to run the python script from the main openpilot folder, or update $PYTHONPATH to include the openpilot directory. carla is another python package you need along with the carla server.

Read more comments on GitHub >

github_iconTop Results From Across the Web

openpilot port guide for Toyota models | by comma ai - Medium
The purpose of this post is to provide a simple how-to guide to port openpilot on currently unsupported Toyota models and trims. Making...
Read more >
OpenPilot Revolution and RevoMini — Copter documentation
OPLink port on RevoMini. OPLink hardware is not supported by ArduPilot, but this port exposes external SPI pins (SCK, CS, MOSI, MISO) that...
Read more >
How openpilot works in 2021 - comma.ai blog
Essentially, openpilot reads data from various sensors (camera, IMU, steering wheel angle sensor, GNSS receiver, etc.), processes their outputs ...
Read more >
Simulation and Control of Deformable Autonomous Airships in ...
This is not the case for airships, a simulation of which needs to ... with an Openpilot Revolution flight controller (including an IMU, ......
Read more >
Estimate Position and Orientation of a Ground Vehicle
Typically, ground vehicles use a 6-axis IMU sensor for pose estimation. ... truth trajectory to ensure the first sample is not % skipped...
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