-
Notifications
You must be signed in to change notification settings - Fork 1
Updated to allow config and app (and eventually the ros version) #107
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
base: master
Are you sure you want to change the base?
Conversation
| with Interpreter.for_image(config.image, | ||
| config.sources, | ||
| environment=config.environment | ||
| ) as interpreter: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could improve this by replacing Interpreter.for_image with Interpreter.for_config. (Alternatively, we could be more OO-friendly by adding an interpreter() method to Config, that produces an interpreter for a given configuration.)
| for fn_launch in config.launches: | ||
| logger.info(f"simulating launch [{fn_launch}]") | ||
| interpreter.launch(fn_launch) | ||
| interpreter.launch(fn_launch, config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we make the changes above, we wouldn't need to pass config here.
| remappings=remappings, | ||
| args=args) | ||
| args=args, | ||
| config=configuration) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could drop the config parameter if configuration becomes a property of Interpreter.
| namespace: str, | ||
| launch_filename: str, | ||
| remappings: Dict[str, str], | ||
| config: Config, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
| remappings=remappings, | ||
| args='') | ||
| args='', | ||
| config=config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
| remappings: Dict[str, str], | ||
| args: str | ||
| args: str, | ||
| config: Config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
| launch_filename=launch_filename, | ||
| remappings=remappings) | ||
| remappings=remappings, | ||
| config=config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
| remappings=remappings, | ||
| manager=mgr) | ||
| manager=mgr, | ||
| config=config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
ChrisTimperley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but there's a couple of places where we can clean up pre-existing design limitations to improve quality generally.
Fix for #104