jhu-dvrk / sawIntuitiveResearchKit

cisst/SAW stack for the da Vinci Research Kit (dVRK)
https://github.com/jhu-dvrk/sawIntuitiveResearchKit/wiki
118 stars 68 forks source link

Console class doesn't check if component already exists #102

Open adeguet1 opened 6 years ago

adeguet1 commented 6 years ago

The console class can create and add components based on the configuration file. It doesn't check if there is already a component with the same name before adding it to the component manager (using AddComponent) which can lead to strange behaviors if the user doesn't see the warning when the console starts. The code should first check if the component exists, and if so report this as a fatal error (either exit or throw exception).