-
Notifications
You must be signed in to change notification settings - Fork 31
Srd submodule deployment #258
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9fb80af
Adding spinning-radar-doppler dependency
lisusdaniil c0b4d1c
Updating Doppler extraction to use spinning-radar-doppler
lisusdaniil 456fd1a
Updated submodule hash
lisusdaniil a4216de
Adding prior velocity passing for preprocessing modules (used in Dopp…
lisusdaniil 3be2523
Added direct integration Doppler/gyro odometry module
lisusdaniil 81a320f
Fixed default radar resolution to align exactly with Navtech radar
lisusdaniil f7f1e9b
Added direct integration of Doppler velocity/gyro for odometry
lisusdaniil 665e409
Small bug fixes and QOL improvements
lisusdaniil c2e38e7
Working discrete time and continuous time direct Doppler-gyro odometry
lisusdaniil 47de4a6
Updating SRD hash
lisusdaniil a59ceea
Removing obsolete/uninitiatilized print statements
lisusdaniil 655b315
Loading gyro measurements into robot frame
lisusdaniil f7178bd
Removing debug print statement
lisusdaniil aa3e6e7
Removing unnecessary check
lisusdaniil 00a2177
Update main/src/vtr_radar/src/modules/odometry/odometry_doppler_modul…
lisusdaniil f44ac30
Update main/src/vtr_radar/include/vtr_radar/modules/odometry/odometry…
lisusdaniil eae43a4
Prevent segfault and print clear message if extractor isn't run
lisusdaniil 5140aca
Cleaned up submodule dependency
lisusdaniil 48f44ba
Cleaned up SRD dependency propagation
lisusdaniil d0a1167
Standardizing naming
lisusdaniil 5be3776
Merge branch 'main' into srd-submodule-deployment
lisusdaniil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,8 +1,11 @@ | ||
| [submodule "steam"] | ||
| path = main/src/deps/steam | ||
| url = ../steam.git | ||
| branch = master | ||
| path = main/src/deps/steam | ||
| url = ../steam.git | ||
| branch = master | ||
| [submodule "lgmath"] | ||
| path = main/src/deps/lgmath | ||
| url = ../lgmath.git | ||
| branch = master | ||
| path = main/src/deps/lgmath | ||
| url = ../lgmath.git | ||
| branch = master | ||
| [submodule "spinning-radar-doppler"] | ||
| path = main/src/deps/spinning-radar-doppler | ||
| url = ../spinning-radar-doppler.git |
Submodule spinning-radar-doppler
added at
e839ef
This file contains hidden or 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 hidden or 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
39 changes: 0 additions & 39 deletions
39
main/src/vtr_radar/include/vtr_radar/data_types/azimuth.hpp
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
93 changes: 93 additions & 0 deletions
93
main/src/vtr_radar/include/vtr_radar/modules/odometry/odometry_doppler_module.hpp
This file contains hidden or 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,93 @@ | ||
| // Copyright 2021, Autonomous Space Robotics Lab (ASRL) | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| /** | ||
| * \file odometry_doppler_module.hpp | ||
| * \author Daniil Lisus, Autonomous Space Robotics Lab (ASRL) | ||
| */ | ||
| #pragma once | ||
|
|
||
| #include "sensor_msgs/msg/point_cloud2.hpp" | ||
|
|
||
| #include "steam.hpp" | ||
|
|
||
| #include "vtr_radar/cache.hpp" | ||
| #include "vtr_tactic/modules/base_module.hpp" | ||
| #include "vtr_tactic/task_queue.hpp" | ||
|
|
||
| namespace vtr { | ||
|
|
||
| namespace radar { | ||
|
|
||
| /** \brief Direct Doppler-based odometry. */ | ||
| class OdometryDopplerModule : public tactic::BaseModule { | ||
| public: | ||
| using PointCloudMsg = sensor_msgs::msg::PointCloud2; | ||
|
|
||
| /** \brief Static module identifier. */ | ||
| static constexpr auto static_name = "radar.odometry_doppler"; | ||
|
|
||
| /** \brief Config parameters. */ | ||
| struct Config : public tactic::BaseModule::Config { | ||
| PTR_TYPEDEFS(Config); | ||
|
|
||
| // Undistortion trajectory parameters | ||
| Eigen::Matrix<double, 3, 1> traj_qc_diag = | ||
| Eigen::Matrix<double, 3, 1>::Ones(); | ||
| // Number of threads for pointcloud processing | ||
| int num_threads = 4; | ||
| // Threshold for zeroing out velocity | ||
| double zero_velocity_threshold = 0.1; | ||
| // Whether to optimize the pose estimate using STEAM | ||
| // If false, direct discrete-time integration is used | ||
| bool optimize = true; | ||
| // Doppler bias | ||
| Eigen::Vector2d doppler_bias = Eigen::Vector2d::Zero(); | ||
|
|
||
| int max_iter = 20; | ||
| bool verbose = false; | ||
| double gyro_cov = 1e-3; | ||
| double dopp_cauchy_k = 0.8; | ||
| double dopp_meas_std = 1.0; | ||
| int integration_steps = 100; | ||
| int traj_num_extra_states = 0; | ||
|
|
||
| static ConstPtr fromROS(const rclcpp::Node::SharedPtr &node, | ||
| const std::string ¶m_prefix); | ||
| }; | ||
|
|
||
| OdometryDopplerModule( | ||
| const Config::ConstPtr &config, | ||
| const std::shared_ptr<tactic::ModuleFactory> &module_factory = nullptr, | ||
| const std::string &name = static_name) | ||
| : tactic::BaseModule(module_factory, name), config_(config) {} | ||
|
|
||
| private: | ||
| int64_t scan_stamp_prev_ = 0; | ||
| Eigen::Vector2d v_r_v_in_r_prev_ = Eigen::Vector2d::Zero(); // Extracted velocity from previous frame | ||
| double yaw_rate_prev_ = 0.0; // Last gyro yaw rate from previous frame | ||
| double preint_yaw_ = 0.0; | ||
| double yaw_rate_avg_prev_ = 0.0; | ||
| Eigen::Matrix4d T_r_delta_prev_ = Eigen::Matrix4d::Identity(); | ||
| void run_(tactic::QueryCache &qdata, tactic::OutputCache &output, | ||
| const tactic::Graph::Ptr &graph, | ||
| const tactic::TaskExecutor::Ptr &executor) override; | ||
|
|
||
| Config::ConstPtr config_; | ||
|
|
||
| VTR_REGISTER_MODULE_DEC_TYPE(OdometryDopplerModule); | ||
| }; | ||
|
|
||
| } // namespace radar | ||
| } // namespace vtr |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.