We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Nowadays the Component::get_state method is a bit flexible. No return type nor structure is demanded.
Component::get_state
maliput_sim/maliput_sim/core/components.py
Lines 67 to 71 in 5809847
For example:
Name:
Lines 159 to 160 in 5809847
Type:
Lines 173 to 174 in 5809847
Pose:
Lines 194 to 195 in 5809847
Velocity:
Lines 219 to 220 in 5809847
Expect a return type of Dict[str, Any].
Dict[str, Any]
Where the dictionary will compose by keys and values from the component:
{'name' : 'A name'}
{'type' : 'A type'}
{'position', [x, y ,z], 'rotation', [x, y ,z, w]}
{'linear', [x, y ,z], 'angular', [x, y ,z]}
The text was updated successfully, but these errors were encountered:
Wdyt @agalbachicar
Sorry, something went wrong.
I think it is OK.
No branches or pull requests
Summary
Nowadays the
Component::get_state
method is a bit flexible. No return type nor structure is demanded.maliput_sim/maliput_sim/core/components.py
Lines 67 to 71 in 5809847
For example:
Name:
maliput_sim/maliput_sim/core/components.py
Lines 159 to 160 in 5809847
Type:
maliput_sim/maliput_sim/core/components.py
Lines 173 to 174 in 5809847
Pose:
maliput_sim/maliput_sim/core/components.py
Lines 194 to 195 in 5809847
Velocity:
maliput_sim/maliput_sim/core/components.py
Lines 219 to 220 in 5809847
Proposal
Expect a return type of
Dict[str, Any]
.Where the dictionary will compose by keys and values from the component:
{'name' : 'A name'}
{'type' : 'A type'}
{'position', [x, y ,z], 'rotation', [x, y ,z, w]}
{'linear', [x, y ,z], 'angular', [x, y ,z]}
The text was updated successfully, but these errors were encountered: