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

Parameter initialization error when not setting rear_wheels_names and front_wheels_names #1

Open
dylan-gonzalez opened this issue Nov 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dylan-gonzalez
Copy link
Collaborator

dylan-gonzalez commented Nov 23, 2023

branch: feature/ackermann_drive_control

to use the four_wheel_steering_controller, the steers_names and wheels_names parameters need to be set. rear_wheels_names and front_wheels_names should not be set. (these parameters are a part of the steering_controllers_library)

But the steering_controllers_library parameter_listener initialization fails when not setting rear_wheels_names and front_wheels_names in the yaml config file.

To Reproduce
Steps to reproduce the behavior:

  1. In your controllers.yaml file, set only wheels_names and steers_names - do not set rear_wheels_names and front_wheels_names.
  2. Try to load the controller
  3. See error: [gzserver-2] [INFO] [1700699681.934820805] [controller_manager]: Loading controller 'four_wheel_steering_controller' [gzserver-2] Exception thrown during controller's init with message: parameter '' has invalid type: expected [string_array] got [not set]

But when you set rear_wheels_names and front_wheels_names (and not wheels_names and steers_names), the controller works. Strange why leaving wheels_names and steers_names out doesn't throw an error.

I've tried removing the 'not_empty' validation rule from the parameter, but still the same error.

@dylan-gonzalez dylan-gonzalez added the bug Something isn't working label Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant