-
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.
Merge pull request #11 from LARR-Planning/thread_check
Add data type and basic functions
- Loading branch information
Showing
9 changed files
with
80 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# larr_planner | ||
# larr-planner |
21 changes: 21 additions & 0 deletions
21
larr_planner/include/larr_planner/type_manager/TypeManager.h
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,21 @@ | ||
|
||
|
||
namespace larr_planner { | ||
struct Position { | ||
double px; | ||
double py; | ||
double pz; | ||
}; | ||
struct Quaternion { | ||
double qx; | ||
double qy; | ||
double qz; | ||
double qw; | ||
}; | ||
struct RobotState { | ||
double t_sec{0.0}; | ||
Position pos{0.0, 0.0, 0.0}; | ||
Quaternion orientation{0.0, 0.0, 0.0, 1.0}; | ||
}; | ||
|
||
} // namespace larr_planner |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "larr_planner/type_manager/TypeManager.h" |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// | ||
// Created by larr on 24. 5. 17. | ||
// | ||
#include "larr_planner/wrapper/Wrapper.h" | ||
#include "larr_planner/wrapper/Wrapper.h" | ||
void larr_planner::Wrapper::SetRobotState(const larr_planner::RobotState &robot_state) {} |
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
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
5 changes: 3 additions & 2 deletions
5
larr_planner_ros2/src/planning_server/planning_server_node.cc
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
// | ||
// Created by larr on 24. 5. 17. | ||
// | ||
// #include "los_keeper_ros2/los_server/los_server.h" | ||
|
||
// #include "larr_planner_ros2/planning_server/planning_server.h" | ||
#include "larr_planner_ros2/planning_server/planning_server.h" | ||
|
||
int main(int argc, char *argv[]) { | ||
rclcpp::init(argc, argv); | ||
|
||
auto options = rclcpp::NodeOptions().automatically_declare_parameters_from_overrides(true); | ||
auto planning_server = std::make_shared<larr_planner::PlanningServer>(options); | ||
|
||
rclcpp::executors::MultiThreadedExecutor executor; | ||
executor.add_node(planning_server); | ||
executor.spin(); | ||
rclcpp::shutdown(); | ||
|
||
return 0; | ||
} |