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

Add missing conversion class from vector of WheelTelemetryData to Python list #8078

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

BBArikL
Copy link

@BBArikL BBArikL commented Aug 26, 2024

Description

Add missing conversion class from vector of WheelTelemetryData to Python list

This adds a missing conversion from vector of WheelTelemetryData to a Python list. When trying to access the "wheels" attribute of the VehicleTelemetryData without this, this exception will occur:

TypError: No to_python (by-value) converter found for C++ type: std::vector<carla::rpc::WheelTelemetryData, std::allocatorcarla::rpc::WheelTelemetryData>

This addition fixes this issue to make the usage in line with similar classes such as "VehiclePhysicsControl" and "WheelPhysicsControl"

Checklist:

  • Your branch is up-to-date with the dev branch and tested with latest changes
  • Extended the README / documentation, if necessary
  • Code compiles correctly
  • All tests passing with make check (only Linux)
  • If relevant, update CHANGELOG.md with your changes

Where has this been tested?

  • Platform(s): Linux
  • Python version(s): 3.10.12
  • Unreal Engine version(s): 4.26.2.0

This change is Reviewable

@BBArikL BBArikL requested a review from a team as a code owner August 26, 2024 15:27
Copy link

update-docs bot commented Aug 26, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update our CHANGELOG.md based on your changes.

@BBArikL
Copy link
Author

BBArikL commented Aug 26, 2024

I did not update the changelog as this is fixing something in the dev branch that is not yet released in any version of Carla: Latest Changes > Added API function get_telemetry_data to the vehicle actor.

…hon list

Add missing conversion class from vector of WheelTelemetryData to Python list

This adds a missing conversion from vector of WheelTelemetryData to a Python list. When trying to access the "wheels" attribute of the VehicleTelemetryData without this, this exception will occur:

TypError: No to_python (by-value) converter found for C++ type: std::vector<carla::rpc::WheelTelemetryData, std::allocator<carla::rpc::WheelTelemetryData>>

This addition fixes this issue to make the usage in line with similar classes such as "VehiclePhysicsControl" and "WheelPhysicsControl" 

Checklist:
- [x] Your branch is up-to-date with the dev branch and tested with latest changes.
- [x] Extended the README/documentation, if necessary.
- [x] Code compiles correctly.
- [x] All tests passing with make check.
@BBArikL BBArikL force-pushed the fix_wheel_telemetry_data_access branch from 6ffa41a to 538fc7d Compare November 15, 2024 18:02
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

Successfully merging this pull request may close these issues.

1 participant