Autonomous-Motorsports-Purdue / AMP_ASSv2

Reassembled, simpler, without move_base and loop closure issues
5 stars 2 forks source link

Logger Class for Testing #9

Open ihagedo opened 2 years ago

ihagedo commented 2 years ago

Description

Once #7 is complete, create a logger class that can be used for table testing of serial communication.

This issue should also be completed after or concurrently issues #8 and #10 .

The design doc for this feature can be found in the loggerwriteup.pdf file on this branch. Please note due to architectural changes, the specific architecture in the writeup is slightly different than the final architecture, however, the process is identical. The write-up will be updated soon.

Sub-tasks

Resources

bitmaks commented 2 years ago

Work happening on logger-comm branch

zghera commented 2 years ago

Can either @ihagedo , @aaaakshat , or @FraserD404 update this GitHub issue to include more details about the problem this is trying to solve and the general steps that should be taken to complete this (to the best of current knowledge). See Autonomous-Motorsports-Purdue/AMP_ASSv1#19 for a decent example on this.

At a minimum, a longer description and linking @FraserD404 's doc would be good. But following the format of the other PRs is recommended.

FraserD404 commented 2 years ago

I will update this issue today following the format of Autonomous-Motorsports-Purdue/AMP_ASSv1#19

FraserD404 commented 2 years ago

Description

Turn the data packets sent to the Arduino into human readable statements by logging the raw packets to a .txt file, then displaying them using the built in ROS logging library. The statements logged would be info, warning, errors, and current cart state. The packets would be logged in hexidecimal form in the amp_serial_jetson_ECU_TEST.cpp file, specifically the build_packet function, to an output.txt file. A separate .cpp would then translate and output the packet contents, compare the state of the cart to past packet(s) & output if it’s speeding up, down, or neutral, turning right or left, as well as the execution time.

The writeup can be found in the loggerwriteup.pdf file. Please note due to architectural changes, the specific architecture in the writeup is slightly different than the final architecture, however the process is identical. The writeup will be updated soon.

Link to Detailed Writeup

edit (Jan 24, 10:06PM): fixed broken link to branch

Edit (ZGhera, Jan 29): Added this to the top-level description