-
Notifications
You must be signed in to change notification settings - Fork 21
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: added simple GUI to visualize AUV position and internal status #496
Conversation
Hallfred
commented
Nov 3, 2024
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.
Good job, I think this is a good starting point for the GUI. We will come back to it next semester when we have more stuff to show in it.
mission/gui_auv/auv_gui/auv_gui.py
Outdated
super().__init__("auv_gui_node") | ||
|
||
# Subscriber to the /nucleus/odom topic | ||
self.subscription = self.create_subscription(Odometry, '/nucleus/odom', self.odom_callback, 10) |
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.
Add the topic names to a yaml config file, such that it is easy to change (we will have to change in the future)
mission/gui_auv/auv_gui/auv_gui.py
Outdated
self.internal_status_subscriber = self.create_subscription(Float32, "/auv/power_sense_module/current", self.current_callback, 5) | ||
self.internal_status_subscriber = self.create_subscription(Float32, "/auv/power_sense_module/voltage", self.voltage_callback, 5) | ||
self.internal_status_subscriber = self.create_subscription(Float32, "/auv/temperature", self.temperature_callback, 5) | ||
self.internal_status_subscriber = self.create_subscription(Float32, "/auv/pressure", self.pressure_callback, 5) |
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.
same here, put them also in the config file
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.
looks good for now