-
Notifications
You must be signed in to change notification settings - Fork 28
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
Acoustic wrapper #226
Conversation
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.
See comments
@@ -24,6 +24,7 @@ add_action_files( | |||
FILES | |||
AcousticsProcessing.action | |||
AcousticsGuess.action | |||
AcousticsWrapperMessage.action |
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.
Just name it as AcousticsWrapper.action
import sys | ||
import os |
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.
If these imports are not used, then remove them
import os | ||
|
||
|
||
class ServerClientThing: |
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.
Rename this to something else, perhaps AcousticsWrapper
self.server.start() | ||
rospy.spin() | ||
|
||
|
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.
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 |
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.
Create a constant variable at the top and set this equal to that constant, so we can easily change it
goal_client_processing.if_double = True | ||
goal_client_processing.version = 0 | ||
goal_client_processing.samp_f = 625000 |
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.
Set these as constants as well
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.
LGTM
* 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>
Wrapper class that communicates with guess server and processing server