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

Feature/py scenario module #649

Merged
merged 53 commits into from
Aug 22, 2024
Merged

Feature/py scenario module #649

merged 53 commits into from
Aug 22, 2024

Conversation

Robert108
Copy link
Collaborator

@Robert108 Robert108 commented Aug 12, 2024

This PR introduces a new module ScenarioModule (SM) for translating openscenario events and parameters to the ATOS world.
Many responsibilities previously handled by the EsminiAdapter now lives in the new module.

Changes done in this PR include:

  • Cmake changes for handling ATOS modules written in Python
  • ATOSBase deleted (object ids/names now handled in scenariomodule)
  • Remove util.h dependency from EsminiAdapter.
  • SM is parameterized with file path for the scenario and which object should be active.
  • SM fetches IP config from the vehicle catalog
  • SM creates ID mapping from scenario object to ATOS (int) ID. (Esmini also holds an internal object to id mapping, to be solved)
  • Delayed start/Triggered start removed from ObjectControl/EsminiAdapter (not needed anyway?)
  • Installation scripts can now reinstall all deps (needed when updating esmini version)

atos/CMakeLists.txt Outdated Show resolved Hide resolved
atos/common/CRSTransformation.cpp Outdated Show resolved Hide resolved
atos/common/CRSTransformation.cpp Outdated Show resolved Hide resolved
atos/common/CRSTransformation.cpp Outdated Show resolved Hide resolved
static std::shared_ptr<rclcpp::Service<atos_interfaces::srv::GetTestOrigin>> testOriginService;
static std::shared_ptr<rclcpp::Service<atos_interfaces::srv::SetObjectIp>> setObjectIpService;
rclcpp::Client<atos_interfaces::srv::GetOpenScenarioFilePath>::SharedPtr oscFilePathClient_; //!< Client to request the current open scenario file path
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a comment here but not on the services?

atos/modules/EsminiAdapter/src/esminiadapter.cpp Outdated Show resolved Hide resolved
atos/modules/EsminiAdapter/src/esminiadapter.cpp Outdated Show resolved Hide resolved
conf/conf/atos-param-schema.json Outdated Show resolved Hide resolved
setup_atos.sh Outdated Show resolved Hide resolved
atos/modules/ScenarioModule/scenariomodule.py Outdated Show resolved Hide resolved
@Robert108 Robert108 marked this pull request as ready for review August 14, 2024 11:18
@Robert108 Robert108 merged commit 80d2904 into dev Aug 22, 2024
7 checks passed
@Robert108 Robert108 deleted the feature/py_scenario_module branch August 22, 2024 12: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.

2 participants