Skip to content
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

refactor(mission_planner): prepare to support ad api #1561

Conversation

isamu-takagi
Copy link
Contributor

@isamu-takagi isamu-takagi commented Aug 10, 2022

Signed-off-by: Takagi, Isamu isamu.takagi@tier4.jp

Description

Move the file for #1495

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #1561 (bbad499) into main (564dbb3) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1561      +/-   ##
==========================================
- Coverage   10.74%   10.73%   -0.01%     
==========================================
  Files        1115     1117       +2     
  Lines       78815    78883      +68     
  Branches    18559    18559              
==========================================
  Hits         8465     8465              
- Misses      61630    61698      +68     
  Partials     8720     8720              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 10.72% <0.00%> (ø) Carriedforward from ed80956

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
.../src/goal_pose_visualizer/goal_pose_visualizer.cpp 0.00% <0.00%> (ø)
...on_planner/src/mission_planner/mission_planner.cpp 0.00% <ø> (ø)
...sion_planner_lanelet2/mission_planner_lanelet2.cpp 0.00% <0.00%> (ø)
...src/mission_planner_lanelet2/utility_functions.cpp 0.00% <ø> (ø)
...src/mission_planner_lanelet2/utility_functions.hpp 0.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -15,7 +15,7 @@
<!-- mission planning module -->
<group>
<push-ros-namespace namespace="mission_planning"/>
<include file="$(find-pkg-share tier4_planning_launch)/launch/mission_planning/mission_planning.launch.py"/>
<include file="$(find-pkg-share tier4_planning_launch)/launch/mission_planning/mission_planning.launch.xml"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will stop using ComposableNodeContainer for mission_planner::MissionPlannerLanelet2 and mission_planner::GoalPoseVisualizer.
That may cause some performance degradation.
@yukkysaito @tkimura4 Is that okay for you?

FYI, from Humble, I believe we can use ComposableNode in launch.xml.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal pose visualizer node only subscribes to the route topic. This topic is only published once per setting route, so I don't think it will affect performance much.

planning/mission_planner/CMakeLists.txt Outdated Show resolved Hide resolved
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "mission_planner/goal_pose_visualizer.hpp"
#include "goal_pose_visualizer.hpp"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you move the header file? Please let me know if there are any references.
Do you want to create a guideline that says "all node header files should be under src/"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you are building a library, put all headers which should be usable by clients and therefore must be installed into a subdirectory of the include folder named like the package, while all other files (.c/.cpp and header files which should not be exported) are inside the src folder.

This is from guide of ament_cmake. This is not library header, so it should be placed under src. Now, many packages in Autoware put their private headers in include, so I think that should be a guideline.

Copy link
Contributor

@kenji-miyake kenji-miyake Aug 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, thanks!
I'll write some documents based on ament_cmake's guidelines.

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
@isamu-takagi isamu-takagi merged commit 2712884 into autowarefoundation:main Aug 26, 2022
@isamu-takagi isamu-takagi deleted the feature/ad-api/mission-planner-preparation branch August 26, 2022 03:49
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
* refactor(mission_planner): prepare to support ad api

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>

* fix node name

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* refactor(mission_planner): prepare to support ad api

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>

* fix node name

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* refactor(mission_planner): prepare to support ad api

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>

* fix node name

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
…ion#1561)

* refactor(mission_planner): prepare to support ad api

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>

* fix node name

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
* refactor(mission_planner): prepare to support ad api

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>

* fix node name

Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants