-
Notifications
You must be signed in to change notification settings - Fork 2
Ti comm dev #17
base: master
Are you sure you want to change the base?
Ti comm dev #17
Conversation
…ts-Purdue/AMP-v1 into ti_comm_dev Reset origin
…ion. SERIAL_TEST is for scaled up testing.
clean attributes
updating isaac-dev
cleaned up ECU file
removed object file
remove object file
remove object file
uncommented declarations
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.
After trying the install, I ran across a couple of things that we should probably chat offline about before I do any more reviews. While the submodules init seemed to work fine, the autogen.sh
did not. I also ran catkinmake to see what would happen and ended up getting some import errors for libserialport. I looked around and also saw that the CMakeLists.txt config does not look updated.
Updated the instructions after our conversation. While the install of libserialport seemed to work fine, there are still two issues that we know of
- When changing the references of
libserialport
in CMakiLists.txt to the new folder, there are now errors that result when catkinmake-ing due to warnings in some of the included files. - The ti_comm node does not show up in the node graph.
Isaac and Zach are currently looking into issues 1 and 2, respectively.
@@ -0,0 +1 @@ | |||
|
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.
What is the purpose of this empty file?
README.md
Outdated
At the top of each branch your want to build the library for you should run the following command and then refer to the readme in src/ti_comm/src | ||
``` | ||
git submodule update --init --recursive | ||
``` |
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.
At the top of each branch your want to build the library for you should run the following command and then refer to the readme in src/ti_comm/src | |
``` | |
git submodule update --init --recursive | |
``` | |
The serial communication node relies on a serial communication library that needs to be built each time you check out a new branch (including master when initially cloning the repo). To properly build the library, run the following commands from the top of the repo directory: | |
1. `git submodule update --init --recursive` | |
2. `cd src/ti_comm/src/libserialport` | |
3. `./autogen.sh` | |
4. `sudo apt-get install autoconf` | |
5. `./configure` | |
6. `make` | |
7. `sudo make install` | |
8. Add it to your LD_LIBRARY_PATH with `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib"` | |
I would encourage you to make a bash alias/function so you don't have to run all of these commands on the creation of every new branch. | |
@@ -0,0 +1,10 @@ | |||
How to Build Libserialport |
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.
Remove this file as a whole if you agree with the suggestion to move its contents t the top-level README
Update on issue 2 here: When reverting to the old CMakeLists.txt file (build the liberialport.0.1.0 lib not the new one), the ti_comm ROS node did not show up because of a memory error when running the node (see below). This is possible due to the imports in
|
Also added some additional comments.
…e/AMP_ASSv1 into ti_comm_dev
This fixes the issue with memcpy call on control packet by changin control packet v_speed and v_angle from int to char in amp_serial_jetson.h. Previously this caused an issue where serial packet looked in msg[0] and msg[1] bytes to get the values of speed and angle, but the control packet was an 8 byte struct of 2 integers which caused msg[0] and msg[1] to be the values of the first int in the struct.
What is a quick description of the change?
Merging finished serial comm modules into the master.
Is this fixing an issue?
#21
Were any issues created as a result of this change?
None.
Are there more details that are relevant?
Fixed library dependency issues and created a better modularized code for debugging.
Future fixes include packet depreciation over time for echo call-back functionality.
Check lists (check x in [ ] of list items)
Any additional comments?