forked from tier4/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Triangle wave implementation is changed.
- Loading branch information
Showing
3 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
control/autoware_control_toolbox/usage_examples/main_signal_generator.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Created by ali on 1/06/22. | ||
// | ||
|
||
#include "autoware_control_toolbox.hpp" | ||
|
||
int main() | ||
{ | ||
auto time_vec = ns_control_toolbox::make_time_signal(0.1, 10); | ||
ns_eigen_utils::printEigenMat(time_vec); | ||
|
||
double frequency_hz = 2; | ||
// test triangle wave | ||
auto triangle_wave = ns_control_toolbox::make_triangle_signal(time_vec, frequency_hz); | ||
ns_eigen_utils::printEigenMat(triangle_wave); | ||
return 0; | ||
} |