-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/sensor fusion.ekf #208
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
base: feature/SensorFusion
Are you sure you want to change the base?
Conversation
| const bool rtcSynced = m_timeSync.isRtcSynced(); | ||
| const bool hostSynced = m_timeSync.isHostSynced(); | ||
|
|
||
| (void)offsetMs; // keep for future debug if not used directly |
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 always use /* ... */ comments.
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.
Done
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.
Still used in Line 369.
data/config/config_zumo1.json
Outdated
| @@ -1,5 +1,5 @@ | |||
| { | |||
| "robotName": "1", | |||
| "robotName": "0", | |||
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.
"zumo1" has the name "0"? does not match with the other config files.
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.
the RobotName defined here is the topic or aruco marcer number and has to match the one provided by SSR
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.
Then rename the file. It's confusing that robotName does not match the filename.
| const int64_t rtt = (static_cast<int64_t>(t4EspMs) - static_cast<int64_t>(t1EspMs)) | ||
| - (static_cast<int64_t>(t3HostMs) - static_cast<int64_t>(t2HostMs)); |
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.
Can't you use int64_t in the first place?
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.
you mean because of the repetitive casts?
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.
Yes.
| m_lastHostRttMs = (rtt >= 0) ? static_cast<uint32_t>(rtt) : 0U; | ||
| m_hostSyncValid = true; | ||
|
|
||
| const double offset_s = static_cast<double>(m_hostOffsetMs) / 1000.0; |
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.
Can't you use float here?
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'm not 100% sure, but i will try
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.
... and did it work?
start_sensorFusion.ps1
Outdated
| "--supervisorTxCh", "2", | ||
| "--serialRxCh", "3", | ||
| "--serialTxCh", "4", | ||
| "--settingsPath", "C:\Users\thaeckel\Documents\Repos\RadonUlzer\./settings/settings.json", |
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.
Try to use relative paths. Another developer will not be able to use this script
start_sensorFusion.ps1
Outdated
| $webotsController = Join-Path $env:WEBOTS_HOME "msys64\mingw64\bin\webots-controller.exe" | ||
|
|
||
| # ===== RadonUlzer (Zumo / RemoteControlSim) ================================== | ||
| # Entspricht deinem PIO-Build-Aufruf: |
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 use english as the standard language for all files that are commited to the repository
data/config/config_zumo1.json
Outdated
| @@ -1,5 +1,5 @@ | |||
| { | |||
| "robotName": "1", | |||
| "robotName": "0", | |||
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.
Then rename the file. It's confusing that robotName does not match the filename.
| x_next(0) = px + v * std::cos(thetaRad) * dt; /* p_x */ | ||
| x_next(1) = py + v * std::sin(thetaRad) * dt; /* p_y */ | ||
| x_next(2) = thetaMrad + omegaMrads * dt; /* theta [mrad] */ | ||
| x_next(3) = v + a_x_mms * dt; /* v */ | ||
| x_next(4) = omegaMrads; /* omega */ |
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 indentation.
| const int64_t rtt = (static_cast<int64_t>(t4EspMs) - static_cast<int64_t>(t1EspMs)) | ||
| - (static_cast<int64_t>(t3HostMs) - static_cast<int64_t>(t2HostMs)); |
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.
Yes.
| m_lastHostRttMs = (rtt >= 0) ? static_cast<uint32_t>(rtt) : 0U; | ||
| m_hostSyncValid = true; | ||
|
|
||
| const double offset_s = static_cast<double>(m_hostOffsetMs) / 1000.0; |
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.
... and did it work?
…ted comment from // to /**/
gabryelreyes
left a comment
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 are still open review findings
Added:
EKF
TimeSync Adapted