Skip to content

Conversation

@Apeiros-46B
Copy link
Member

Description

Implement a helper function to kill existing processes before starting the new instance in binary context managers

Testing Done

(not quite sure how to test this to be honest)

Resolved Issues

Resolves #3342

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

  • Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

@williamckha williamckha requested review from a team, GrayHoang and itsarune and removed request for a team February 7, 2026 15:48
:param enable_realism: a argument (--enable_realism) that is going to be passed to er_force_simulator_main binary
"""
self.simulator_runtime_dir = simulator_runtime_dir
self.generic_command = [
Copy link
Contributor

Choose a reason for hiding this comment

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

should we have this defined twice across two separate files, or declare some constant that can be imported?

Copy link
Member

Choose a reason for hiding this comment

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

For something like this I'm fine with repeating ourselves

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.

Binary context managers should check if the process already exists and kill it during startup

3 participants