-
Notifications
You must be signed in to change notification settings - Fork 37
Added a communication worker for logging cluster estimation #227
Conversation
…mmunication worker
…ocal-global conversion.
36df1a7 to
8ff6035
Compare
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.
Reviewed. Is there a more descriptive name beyond communication ? What is the purpose of this worker beyond logging?
|
|
||
| objects_in_world_global.append(object_in_world_global) | ||
|
|
||
| timestamp = time.time() |
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.
Why is this required?
modules/communications/log_to_kml.py
Outdated
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 should be in a separate PR in repository common.
…mmunication worker
…ocal-global conversion.
8ff6035 to
92c3299
Compare
| if not result: | ||
| # Log nothing if at least one of the conversions failed | ||
| self.__logger.warning( | ||
| f"drone_position_global_from_local conversion failed:\nhome_position: {self.__home_position}\nobject_position_local: {object_position_local}" |
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.
I think you still need to change this to position global from position local
maxlou05
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.
Reviewed
config.yaml
Outdated
| random_state: 0 | ||
|
|
||
| communications: | ||
| timeout: 10.0 # seconds |
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.
Can we make this timeout longer, like 30 seconds? I feel like main_2024 takes a while to boot up
main_2024.py
Outdated
| for cluster in cluster_estimations: | ||
| main_logger.debug("Cluster in world: " + True) | ||
| main_logger.debug("Cluster in world: ", True) | ||
| main_logger.debug("Cluster location x: " + str(cluster.location_x)) | ||
| main_logger.debug("Cluster location y: " + str(cluster.location_y)) | ||
| main_logger.debug("Cluster spherical variance: " + str(cluster.spherical_variance)) |
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.
Can we remove all of this and just log logger.debug(f"clusters: {detections_in_world}") as it is in cluster_estimation_worker?
modules/communications/log_to_kml.py
Outdated
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.
Please delete this. Evan or I will move it to post-processing
maxlou05
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.
Approved!
No description provided.