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

feat(control_data_collecting_tool): add constant acceleration/actuation mode #185

Merged

Conversation

YoshihiroKogure
Copy link
Contributor

Description

I added a script to collect data for acceleration and deceleration with constant acceleration or pedal input (& fixed minor bugs and typos).

add_actuation_mode_small

Please rebuild the project and then collect data for constant acceleration and pedal input adjustments.

  • constant acceleration command data collection
    Change CONTROL_MODE in config/common_param.yaml to external_acceleration_cmd, and follow the instructions in section 7.3 of How to use in README.md under the external_acceleration_cmd item.

  • constant actuation command data collection
    Change CONTROL_MODE in config/common_param.yaml to external_actuation_cmd, and follow the instructions in section 7.3 of How to use in README.md under the external_actuation_cmd item.
    Please note that when launching the control_data_collecting_tool, specify the file path to the accel/brake map as described in section 4 of How to use.

How was this PR tested?

Notes for reviewers

None.

Effects on system behavior

None.

YoshihiroKogure and others added 20 commits December 27, 2024 06:29
Signed-off-by: Yoshihiro Kogure <[email protected]>
chore: merge main to feat/add_actuation_mode
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
chore: merge feat/add_actuation_mode_temp to feat/add_actuation_mode
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Copy link

github-actions bot commented Jan 1, 2025

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@kosuke55 kosuke55 changed the title feat(autoware_debug_tools): add constant acceleration/actuation mode feat(control_data_collecting_tool): add constant acceleration/actuation mode Jan 8, 2025
acceleration_cmd = self.get_parameter("stop_acc").get_parameter_value().double_value
if self.CONTROL_MODE == "actuation_cmd" or self.CONTROL_MODE == "external_actuation_cmd":
if self.pedal_input is not None:
acceleration_cmd = self.accel_brake_map.convert_actuation_cmd_to_accel_input(
Copy link
Contributor

Choose a reason for hiding this comment

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

memo:

actuation_cmd is not published directly, reconverted in raw_vehicle_cmd_converter.
actuation_cmd -[this tool]-> acceleration_cmd -[raw_vehicle_cmd_converter]-> actuation_cmd

@kosuke55
Copy link
Contributor

kosuke55 commented Jan 8, 2025

CONTROL_MODE: actuation_cmd works

image

@kosuke55
Copy link
Contributor

kosuke55 commented Jan 8, 2025

ros2 run control_data_collecting_tool data_collecting_actuation_cmd.py also works

image

@kosuke55
Copy link
Contributor

kosuke55 commented Jan 8, 2025

@kosuke55 kosuke55 merged commit e4d32ad into autowarefoundation:main Jan 9, 2025
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants