Skip to content
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

Acoustic wrapper #226

Merged
merged 4 commits into from
Oct 14, 2020
Merged

Acoustic wrapper #226

merged 4 commits into from
Oct 14, 2020

Conversation

Spammy0607
Copy link
Contributor

Wrapper class that communicates with guess server and processing server

@muthuArivoli muthuArivoli self-requested a review October 10, 2020 16:37
Copy link
Member

@muthuArivoli muthuArivoli left a comment

Choose a reason for hiding this comment

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

See comments

@@ -24,6 +24,7 @@ add_action_files(
FILES
AcousticsProcessing.action
AcousticsGuess.action
AcousticsWrapperMessage.action
Copy link
Member

Choose a reason for hiding this comment

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

Just name it as AcousticsWrapper.action

Comment on lines 6 to 7
import sys
import os
Copy link
Member

Choose a reason for hiding this comment

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

If these imports are not used, then remove them

import os


class ServerClientThing:
Copy link
Member

Choose a reason for hiding this comment

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

Rename this to something else, perhaps AcousticsWrapper

self.server.start()
rospy.spin()


Copy link
Member

Choose a reason for hiding this comment

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

Delete this extra line

self.client_guess.wait_for_server()
goal_client_guess = AcousticsGuessGoal()
goal_client_guess.filename = this_goal.filename
goal_client_guess.samp_f = 625000
Copy link
Member

Choose a reason for hiding this comment

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

Create a constant variable at the top and set this equal to that constant, so we can easily change it

Comment on lines 49 to 51
goal_client_processing.if_double = True
goal_client_processing.version = 0
goal_client_processing.samp_f = 625000
Copy link
Member

Choose a reason for hiding this comment

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

Set these as constants as well

@muthuArivoli muthuArivoli mentioned this pull request Oct 12, 2020
18 tasks
@muthuArivoli muthuArivoli self-requested a review October 14, 2020 23:34
Copy link
Member

@muthuArivoli muthuArivoli left a comment

Choose a reason for hiding this comment

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

LGTM

@muthuArivoli muthuArivoli merged commit 745de12 into acoustic Oct 14, 2020
@muthuArivoli muthuArivoli deleted the acoustic-wrapper branch October 14, 2020 23:35
muthuArivoli added a commit that referenced this pull request Mar 13, 2021
* acoustic branch

* major refactoring

* update matplotlib to use agg backend

* move action to custom_msgs and finalize scripts

* integrated guess

* list comp and refactor

* Acoustic wrapper (#226)

Adds basic implementation for the main wrapper.

* data generator (#253)

Co-authored-by: Reed Chen <reedchen19@gmail.com>

* Saleae integration (#254)

* made guess_processing wrapper

* updated variable names

* got rid of duplicate scripts

* did changes according to comments

* saleae rough draft

* updated saleae.py to have one line command

* spelling changes

* fix saeleae code and name

Co-authored-by: Brandon K Bae <brandon.bae@duke.edu>
Co-authored-by: Spammy0607 <71797727+Spammy0607@users.noreply.github.com>

* Refactor and redesign various interfaces

Refactors the data sim script and the wrapper script for better design.
Updates interfaces to include messages on feedback, and return better
indicators of success.

* allow multiple files for guess

* add readme and launch file, update dockerfiles

* linting

* lint again

* final lint

* use tuple over list for key in dictionary

Co-authored-by: Estelle He <wh103@duke.edu>
Co-authored-by: Reed Chen <reed.chen@duke.edu>
Co-authored-by: Reed Chen <reedchen19@gmail.com>
Co-authored-by: Spammy0607 <71797727+Spammy0607@users.noreply.github.com>
Co-authored-by: Brandon K Bae <brandon.bae@duke.edu>
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.

2 participants