-
Notifications
You must be signed in to change notification settings - Fork 35
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(control_data_collecting_tool): add safety measures and rosbag recording and loading #134
feat(control_data_collecting_tool): add safety measures and rosbag recording and loading #134
Conversation
if not target_topic_included: | ||
return target_topic_included | ||
|
||
# |
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.
# |
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.
Thank you for your suggestions. I fixed in 24d4175.
In the 00b3e0b commit, I modified it to count data only when the operation mode is set to 3. |
control_data_collecting_tool/scripts/data_collecting_rosbag_record.py
Outdated
Show resolved
Hide resolved
self._present_acceleration = msg | ||
|
||
def subscribe_operation_mode(self, msg): | ||
self.present_peration_mode_ = msg.mode |
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.
self.present_peration_mode_ = msg.mode | |
self.present_operation_mode_ = msg.mode |
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.
could you please some typos?
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.
Thank you for your feedback. I have made the changes in c95cdfb.
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 fix typo again 🙇
collectig
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 rebased on main so please force push if you fix
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.
Thank you for repeatedly pointing out my mistakes. I have made the corrections.
def record_message(self): | ||
# Start subscribing to topics and recording if the operation mode is 3(LOCAL) | ||
if self.present_operation_mode_ == 3 and not self.subscribed and not self.recording: | ||
self.writer.create_writer() | ||
self.writer.subscribe_topics() | ||
self.subscribed = True | ||
|
||
# Start recording if topics are subscribed and the operation mode is 3 | ||
if self.present_operation_mode_ == 3 and self.subscribed and not self.recording: | ||
self.writer.start_record() | ||
self.recording = True | ||
|
||
# Stop recording if the operation mode changes from 3 | ||
if self.present_operation_mode_ != 3 and self.subscribed and self.recording: | ||
self.writer.stop_record() | ||
self.subscribed = False | ||
self.recording = False |
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 add message print in the terminal when start/stop record
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.
Thank you for your feedback. I have made the changes in c95cdfb.
c95cdfb
to
73ea788
Compare
7e53291
to
dc3b034
Compare
dc3b034
to
8b76f11
Compare
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
…cord.py Signed-off-by: Kosuke Takeuchi <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
Signed-off-by: Yoshihiro Kogure <[email protected]>
6ca20b3
to
e2bf900
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.
LGTM!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #134 +/- ##
========================================
- Coverage 2.12% 0.00% -2.13%
========================================
Files 163 1 -162
Lines 9402 84 -9318
Branches 383 0 -383
========================================
- Hits 200 0 -200
+ Misses 9045 84 -8961
+ Partials 157 0 -157
☔ View full report in Codecov by Sentry. |
Description
Add following two functionalities in this PR.
pr_safety_measure.webm
config/topics.yaml
are automatically recorded and the data is saved in the directory where nodes are launched./localization/kinematic_state
and/localization/acceleration
located in the current directory. You can switch-off this functionality ifLOAD_ROSBAG2_FILES
inconfig/param.yaml
is set tofalse
.Following demo shows control data collecting tool loads data in the current directory and automatically reflects data counting plots.
pr_load_data.webm
Related links
Tests performed
Notes for reviewers
Interface changes
Effects on system behavior
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.