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

Adding a new odometer stream for python #639

Open
shreyas2311 opened this issue Apr 23, 2021 · 9 comments
Open

Adding a new odometer stream for python #639

shreyas2311 opened this issue Apr 23, 2021 · 9 comments
Assignees

Comments

@shreyas2311
Copy link

shreyas2311 commented Apr 23, 2021

I would like to know how to add an odometer element similar to the acceleration and speed that appears on the circle example. I have tried adding metrics but they only seem render the data in a graphical form. Additionally, it seems like the existing odometer UI elements are mapped to /vehicle/acceleration and /vehicle/velocity streams by default. Is there any way to modify this. Also, is there any way to remove these elements if I wanted to?

@twojtasz twojtasz self-assigned this Apr 25, 2022
@ekurtgl
Copy link

ekurtgl commented Jul 12, 2023

Hi @shreyas2311 ,

Have you found a solution to your problem yet?

@shreyas2311
Copy link
Author

No I could not. Eventually we came up with our own UI and made the required change in the front end.

@ekurtgl
Copy link

ekurtgl commented Jul 12, 2023

I see. I also need a very simple functionality like adding some arbitrary text on top of the objects (similar to object IDs) like this:

image

Do you have any idea on how this can be implemented in xviz? Thanks.

@shreyas2311
Copy link
Author

You can use the label primitive if you want to display texts
For example : https://avs.auto/playground/?sample_streams=text

@ekurtgl
Copy link

ekurtgl commented Jul 12, 2023

I was already able to do it on the playground and now I want to do it in my local xviz installation. For that, I modified tracklets-converter.js file under /xviz/examples/converters/kitti/src/converters similar to the playground, but it doesn't seem to have any effect when I run the client. Do you have any guess on what might be the problem? Thank you.

@shreyas2311
Copy link
Author

shreyas2311 commented Jul 12, 2023

Oh ok. I am unfamiliar with the JS version. I used the python-xviz-avs. In that, when you are building your UI streams, you would just have to add the same thing in the playground and it should work. However, I think it should be something similar for JS as well.

@ekurtgl
Copy link

ekurtgl commented Jul 12, 2023

May I ask which script you use to run the server with python? I followed the readme file under python folder, but serve_scenario.py throws error:

image

Thank you!

@shreyas2311
Copy link
Author

shreyas2311 commented Jul 13, 2023

Looks like the error you are having is on the import line itself ( import xviz_avs ) which seems like an issue with the path. Can you try having your script in the same folder as the xviz_avs library? This should give you an idea.

@ekurtgl
Copy link

ekurtgl commented Jul 13, 2023

Oh, apparently it was not a path issue, but I had to install protobuf via pip install protobuf==3.20.*. This solved my problem. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants