-
Notifications
You must be signed in to change notification settings - Fork 650
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(ad_service_state_monitor): remove unused pointcloud_map param #1196
Conversation
Please avoid abbreviated words like |
2698727
to
be8d48e
Compare
What happens if you fail to launch the pointcloud loader? |
This setting checks if the map is successfully published. |
Codecov Report
@@ Coverage Diff @@
## main #1196 +/- ##
=====================================
Coverage 9.59% 9.59%
=====================================
Files 1042 1042
Lines 71837 71837
Branches 15590 15590
=====================================
Hits 6890 6890
Misses 58978 58978
Partials 5969 5969
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report at Codecov.
|
@kenji-miyake |
@kenji-miyake |
@shmpwk It's just setting a wrong option not to launch the pointcloud loader. |
@kenji-miyake |
Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>
be8d48e
to
d5168bc
Compare
@@ -45,13 +44,6 @@ | |||
type: "autoware_auto_mapping_msgs/msg/HADMapBin" | |||
transient_local: True | |||
|
|||
/map/pointcloud_map: |
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.
Mm, I think you can't delete the setting for autoware.launch
.
For planning_simulator.launch
, yes it could be removed, but I wonder why it makes no problem now. 🤔
I guess that no pointcloud map is given in scenario simulations and the ad_service_state won't transition correctly.
I'll check the behavior.
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.
@shmpwk I've confirmed the behavior with the following commands.
ros2 launch autoware_launch planning_simulator.launch.xml map_path:=$HOME/Downloads/sample-map-planning vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit
ros2 bag record /initialpose /planning/mission_planning/goal
# Send an initial pose and goal pose from RViz.
ros2 launch autoware_launch planning_simulator.launch.xml map_path:=$HOME/Downloads/sample-map-planning vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit pointcloud_map_file:=dummy
ros2 bag play {rosbag_dir}
# Change the target frame to `base_link`, click `Zero` to reset the viewpoint, and confirm the route is set.
ros2 topic echo /autoware/state
The results are:
- Before this PR, the state is 1.
- With this PR, the state is 4.
module AutowareState_Constants {
const uint8 INITIALIZING = 1;
const uint8 WAITING_FOR_ROUTE = 2;
const uint8 PLANNING = 3;
const uint8 WAITING_FOR_ENGAGE = 4;
const uint8 DRIVING = 5;
const uint8 ARRIVED_GOAL = 6;
const uint8 FINALIZING = 7;
};
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.
Oh... thank you for your checking, now I rethink why this happens.
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.
Thank you for analyzing the behavior.
Is this PR from the discussion here? |
@kenji-miyake |
Close this PR since this is harmful for the transition of |
* release v0.4.0 * remove ROS1 packages temporarily Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp> * Revert "remove ROS1 packages temporarily" This reverts commit a78b36113cc2ea65f3fc1c3488a363651b679881. Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp> * add COLCON_IGNORE to ros1 packages Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp> * Rename launch files to launch.xml (autowarefoundation#28) * port freespace plannet to ros2 (autowarefoundation#41) * port freespace plannet to ros2 Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix from review : add buildtool dependence & change function name to camelCase Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix duration unit for RCLCPP_*_THROTTLE (autowarefoundation#75) Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Convert calls of Duration to Duration::from_seconds where appropriate (autowarefoundation#131) * Rename h files to hpp (autowarefoundation#142) * Change includes * Rename files * Adjustments to make things compile * Other packages * Adjust copyright notice on 532 out of 699 source files (autowarefoundation#143) * Use quotes for includes where appropriate (autowarefoundation#144) * Use quotes for includes where appropriate * Fix lint tests * Make tests pass hopefully * Enable lints in freespace_planner (autowarefoundation#147) * add missing declaration of parameter (autowarefoundation#233) Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp> * Fix typos in planning modules (autowarefoundation#866) (autowarefoundation#275) * fix typos in planning * fix corresponding typos in planning * revert fixed typos temporarily due to its impact on launchers Co-authored-by: Kazuki Miyahara <kmiya@outlook.com> * Ros2 fix topic name part1 (autowarefoundation#408) * Fix topic name of lane_departure_checker debug Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of mpc_follower debug Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of velocity_controller debug Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of motion_velocity_optimizer debug Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of lane_change_planner debug Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of behavior_velocity_planner debug Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of obstacle_avoidance_planner debug Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of behavior_velocity_planner Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of motion_velocity_optimizer Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of lane_departure_checker Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of mpc_follower Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of behavior_velocity_planner Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of velocity_controller Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of lane_change_planner Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of obstacle_avoidance_planner Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of obstacle_stop_planner Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of costmap_generator Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of freespace_planner Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of surround_obstacle_checker Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of costmap_generator Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix topic name of emergency_handler Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix lint errors Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * Fix typo Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * add use_sim-time option (autowarefoundation#454) * Make planning modules components (autowarefoundation#1263) Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Remove use_sim_time for set_parameter (autowarefoundation#1260) Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Rename AstarNavi to FreespacePlannerNode (autowarefoundation#1322) * Rename AstarNavi Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * uncrustify Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Porting freespace planner (autowarefoundation#1290) * update HA* for multiple curvatures (autowarefoundation#1196) * update HA* for multi-curvature planning Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * restore param to old one Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * cosmetic change Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Add todo for parameter name change Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add freespace planner config yaml (autowarefoundation#1207) * add freespace planner config yaml * fixed typo * fixed comment * Fix variable names Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix lint Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: RyuYamamoto <ryu.yamamoto@tier4.jp> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp> Co-authored-by: wep21 <border_goldenmarket@yahoo.co.jp> * Fix wrong rate in freespace_planner (autowarefoundation#1564) Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * suppress warnings for declare parameters (autowarefoundation#1724) * fix for lanelet2_extension * fix for traffic light ssd fine detector * fix for topic_state_monitor * fix for dummy diag publisher * fix for remote cmd converter * fix for vehicle_info_util * fix for multi object tracker * fix for freespace planner * fix for autoware_error_monitor * add Werror for multi object tracker * fix for multi object tracker * add Werror for liraffic light ssd fine detector * add Werror for topic state monitor * add Werror * add Werror * add Werror * add Werror * fix style * set default arg (autowarefoundation#1736) (autowarefoundation#1737) * Fix -Wunused-parameter (autowarefoundation#1836) * Fix -Wunused-parameter Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix mistake Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * fix spell * Fix lint issues Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Ignore flake8 warnings Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Co-authored-by: Hiroki OTA <hiroki.ota@tier4.jp> * add sort-package-xml hook in pre-commit (autowarefoundation#1881) * add sort xml hook in pre-commit * change retval to exit_status * rename * add prettier plugin-xml * use early return * add license note * add tier4 license * restore prettier * change license order * move local hooks to public repo * move prettier-xml to pre-commit-hooks-ros * update version for bug-fix * apply pre-commit * Master sync for parking (autowarefoundation#1693) * Reedsshepp distance as a heuristic function in hybrid A star (autowarefoundation#1297) * Use reeds sheep distance * Use average radius * Add standalone toy problem * Cleanup standalone node * Add plotter * Add rostest * Arrange directory * Better test and plot settings * Following PEP & small fix cpp * Avoid repeted heap allocation * Standalone reeds-shepp * Licence notice * Use struct instead of raw array * Update license * Removed comment * Add how to use python visualizer * Remove useless methods * Apply clang-format * Do not fully expose StateXYT * Remove StateXYT->q[3] conversion * Use StateXYZ & remove useless functions * Add license in test * Update planning/scenario_planning/parking/astar_search/include/astar_search/astar_search.h Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Update planning/scenario_planning/parking/astar_search/src/astar_search.cpp Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Install reeds-shepp * Apply markdownlint Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Boost collision checking by pre-caching the collision indexes for all yaw angles (autowarefoundation#1298) * Precompute collision index for all theta to accelearte collision * Add test condition that checks solution's feasibility * Fix in response to the review * Update planning/scenario_planning/parking/astar_search/include/astar_search/astar_search.h Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp> * Use inline (autowarefoundation#1572) * Modular planner (autowarefoundation#1492) * Update * Check working (NOTE somehow 2x faster than the original... why???) * Split header and impl * AstarWaypoint => PlannerWaypoint * AstarParam => PlannerParam * Change package name : astar_search => planning_algorithms * Add override keyword for readability * Apply clang-format & Add License * Remove useless executable * Rearange some functions and members * Add include guard * Remove unused node status * Add virtual destructor * Rename test names * Removed duplicate transformPose * Do not expose transformPose * Compatible planning_algorithms * Pointer to AbstractAlgorithm * Apply clang-format * Removed needless method declaration * Renamed planning_algorithms => parking_planning_algorithms * Add explicit * Apply clang-format * Split parameter into PlannerCommonParam and AstarParam * Tweak * Remove unused line * Split rosparam into common_param and astar_param * Fix package stuff reflect to the chagne of planning_algorithm pkg name * Change class name * Small fix (complied! and check running on Autoware) * Add rosparam : planning_algorithm * Fix comment and ros_info message * Remove useless ; * Add note * Add namespace * Fix typo * Apply clang-format 10 * Remove array3d * Avoid using std * Rename: parking => freespace * Avoid using namespace hoge * Update readme of freesapce planner * Apply clang-format * Update readme for freesplace_planning_algorithms * [freespace_planning_algorithms] apply aedd8626762121ad7 Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix inline definition Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * rename directory Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * rename function Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Fix bug yaw => index conversion * modify package.xml: fix license, add author Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix license Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Fix bug nearest_index must not be greater than the current target_index_ (autowarefoundation#1571) * Fixbug * Apply clang-format * Compute neareset index in the partial trajectory * extract partial_trajectory from current target trajectory Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add explicit guard Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Cleanup & modify readme freespace planner (autowarefoundation#1607) * apply clang format Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * align indent Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * rename robot_shape -> vehicle_shape Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * rename step -> distance for TODO Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * modify include guard Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix comparison warning Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * update readme Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add namespace on ros-parameters Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * use autoware_utils Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * align indent Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix comparison warning Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Rename files Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Remove boost constants Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Apply lint Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Add missing geometry2 apis Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Porting test code to ros2 Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Apply lint Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Install test script Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Change file mode of test script Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Fix map info data type in test script Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Add namespace and message abbreviation Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Fix typo Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Fix lint Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> * Fix for pre-commit Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix tf initialization Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp> Co-authored-by: Hirokazu Ishida <38597814+HiroIshida@users.noreply.github.com> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: tkimura4 <tomoya.kimura@tier4.jp> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp> * set default arg (autowarefoundation#1736) * Fix package.xml (autowarefoundation#2056) Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Change formatter to clang-format and black (autowarefoundation#2332) * Revert "Temporarily comment out pre-commit hooks" This reverts commit 748e9cdb145ce12f8b520bcbd97f5ff899fc28a3. * Replace ament_lint_common with autoware_lint_common Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Remove ament_cmake_uncrustify and ament_clang_format Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Apply Black Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Apply clang-format Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix build errors Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix for cpplint * Fix include double quotes to angle brackets Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Apply clang-format Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Fix build errors Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * Add COLCON_IGNORE (autowarefoundation#500) Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * rename topic name twist -> odometry (autowarefoundation#568) Co-authored-by: Takayuki Murooka <takayuki.murooka@tier4.jp> * Port parking planner packages from .Auto (autowarefoundation#600) * Copy code of 'vehicle_constants_manager' * Fix vehicle_constants_manager for ROS galactic * Rm .iv costmap_generator freespace_planner freespace_planning_aglorihtms * Add astar_search (from .Auto) * Copy freespace_planner from .Auto * Update freespace_planner for .IV * Copy costmap_generator from .Auto * Copy and update had_map_utils from .Auto * Update costmap_generator * Copy costmap_generator_nodes * Update costmap_generator_nodes * Comment out all tests * Move vehicle_constant_managers to tmp_autoware_auto_dependencies * ignore pre-commit for back-ported packages Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * ignore testing Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Port parking modules (autowarefoundation#738) * Port costmap_generator * Port freespace_planner * fix readme * ci(pre-commit): autofix * misc Co-authored-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp> Co-authored-by: Nikolai Morin <nnmmgit@gmail.com> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Ryohsuke Mitsudome <43976834+mitsudome-r@users.noreply.github.com> Co-authored-by: Kazuki Miyahara <kmiya@outlook.com> Co-authored-by: Takagi, Isamu <43976882+isamu-takagi@users.noreply.github.com> Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: Keisuke Shima <19993104+KeisukeShima@users.noreply.github.com> Co-authored-by: RyuYamamoto <ryu.yamamoto@tier4.jp> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp> Co-authored-by: wep21 <border_goldenmarket@yahoo.co.jp> Co-authored-by: Hiroki OTA <hiroki.ota@tier4.jp> Co-authored-by: Hirokazu Ishida <38597814+HiroIshida@users.noreply.github.com> Co-authored-by: Takayuki Murooka <takayuki5168@gmail.com> Co-authored-by: Takayuki Murooka <takayuki.murooka@tier4.jp> Co-authored-by: Maxime CLEMENT <78338830+maxime-clem@users.noreply.github.com> Co-authored-by: Fumiya Watanabe <rej55.g@gmail.com> Co-authored-by: Takeshi Miura <57553950+1222-takeshi@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…PR6594 feat(dynamic_obstacle_stop): add option to ignore unavoidable collisions
Signed-off-by: Shumpei Wakabayashi shumpei.wakabayashi@tier4.jp
Description
It seems
/map/pointcloud_map
config param is not used atad_service_state_monitor
so I remove it.I tested planning_simulator and confirmed it works without it.
(I don't know who knows well about it, so I requested many people randomly to review this.)
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.
After all checkboxes are checked, anyone who has write access can merge the PR.