Skip to content

Commit 1b801be

Browse files
th1991-01SakodaShintarosatoshi-otasoblintaikitanaka3
authored
Add control data collecting tool for learning-based control
* Implement basic part * Disable data collection area selection during automatic driving * Remove unnecessary code * Add rviz_config for data collection * Update rviz_config for data collection * Changed to start driving by pressing LOCAL * Fix hard coding rviz config path when launching * Add a launch file in this package * Add missing changes * Claen up arguments to use rviz_config * Updated pre-commit-hooks-ros version from v0.8.0 to v0.9.0 (autowarefoundation#24) Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> * Add 8-figure target route * Avoid errors when data collecting area cannot be selected by clicking properly. * Change to launch another launch for data collection after launching the standard autoware_launch. * chore(tools): move system and evaluation tools to this repo from autoware.universe (autowarefoundation#26) * chore(tools): move system tools Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * chore(evaluator): move evaluators Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> --------- Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * update * update trajectory publisher * update * feat(driving_environment_analyzer): add rviz plugin (autowarefoundation#23) * feat(driving_environment_analyzer): add rviz plugin Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * feat(driving_environment_analyzer): output csv file Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> --------- Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * add naive pure pursuit * update * clean up naive pure pursuit * smoothing trajectory position * refactor * chore(rviz_plugin): move peripheral rviz plugin (autowarefoundation#27) * feat: calibrator tier4 pkg name (autowarefoundation#200) * feat: change names Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * feat: move pkg to common Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * feat: change pkg name Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * fix: library path (autowarefoundation#225) Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp> Co-authored-by: taikitanaka3 <taiki.tanaka@tier4.jp> * feat: add rviz plugin to publish and control the simulated clock (#349) * Add tier4_clock_rviz_plugin to publish&control the sim clock in rviz Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Add step control Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Fix precommit Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Update documentation Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Fix spellcheck Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Update plugin description and icon Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Rename package Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Fix bug with long duration jumps (high speed + low rate) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * ci: check include guard (#438) * ci: check include guard * apply pre-commit * Update .pre-commit-config.yaml Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * fix: pre-commit Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * chore: sync files (#629) * chore: sync files Signed-off-by: GitHub <noreply@github.com> * ci(pre-commit): autofix Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * style: fix format of package.xml (#844) Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * refactor: use autoware cmake (#849) * remove autoware_auto_cmake Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * add build_depend of autoware_cmake Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * use autoware_cmake in CMakeLists.txt Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * fix bugs Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * fix cmake lint errors Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * chore: upgrade cmake_minimum_required to 3.14 (#856) Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * fix(accel_brake_map_calibrator): rviz panel type (#895) * fixed panel type Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * modified instruction for rosbag replay case Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * modified update_map_dir service name Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * feat: add manual controller (#989) * feat: add manual controller Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * ci(pre-commit): autofix Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * fix : typo Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * chore: minor update Signed-off-by: tanaka3 <ttatcoder@outlook.jp> Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * chore : add minor update Signed-off-by: tanaka3 <ttatcoder@outlook.jp> Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * docs: add image for readme Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * docs: update docs Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * ci(pre-commit): autofix Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * ci(pre-commit): autofix * Update common/tier4_control_rviz_plugin/src/tools/manual_controller.cpp Signed-off-by: Shumpei Wakabayashi <Shumpei Wakabayashi> Co-authored-by: taikitanaka3 <65527974+taikitanaka3@users.noreply.github.com> * Update common/tier4_control_rviz_plugin/src/tools/manual_controller.hpp Co-authored-by: taikitanaka3 <65527974+taikitanaka3@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com> * feat(manual_controller): support backward driving (#1119) * feat(manual_controller): support backward driving Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * chore: unite variable * feat: add screen capture package (#1177) * feat: add screen capture package Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * feat: add state to current process * style: refactor codes * fix: time * feat: add mp4 writer and finalize folders * feat: add trigger by service Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * feat: update recorder Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * fix: change codec of mp4 to h264 (#1262) Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * feat: optimize screen capture panel (#1470) * feat: optimize screen capture panel Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * apply pre-commit Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * fix: remove unused check of rviz plugin version (#1474) Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * fix(rviz_plugin): fix screen capture plugin (#1492) Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * refactor(tier4_calibration_rviz_plugin): apply clang-tidy (#1596) * refactor(tier4_control_rviz_plugin): apply clang-tidy (#1597) * refactor(tier4_control_rviz_plugin): apply clang-tidy * revert: readability-identifier-naming Signed-off-by: h-ohta <hiroki.ota@tier4.jp> Signed-off-by: h-ohta <hiroki.ota@tier4.jp> * revert(tier4_calibration_rviz_plugin): readability-identifier-naming (#1618) * fix(tier4_screen_capture_rviz_plugin): fix release process to handle video writer correctly (#1622) * refactor(tier4_screen_capture_rviz_plugin):apply clang-tidy (#1649) Signed-off-by: h-ohta <hiroki.ota@tier4.jp> Signed-off-by: h-ohta <hiroki.ota@tier4.jp> * fix(tier4_screen_capture_rviz_plugin): fix spell check (#1790) * fix(tier4_screen_capture_rviz_plugin): fix spell check Signed-off-by: h-ohta <hiroki.ota@tier4.jp> * ci(pre-commit): autofix Signed-off-by: h-ohta <hiroki.ota@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * feat: add rtc manager rviz plugin (#1936) * feat: add rtc manager rviz plugin Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * chore: cosmetic change Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * chore: remove indent Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * feat: add rtc safe unsafe color Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * fix: typo Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * chore: simplify layout Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * feat: update rtc panel Signed-off-by: tanaka3 <ttatcoder@outlook.jp> Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * feat(rtc_manager_panel): add rtc all approval (#2009) * feat(rtc_manager_panel): add rtc all approval Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp> * chore: cosmetic change Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp> * fix: static cast Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * chore: update text Co-authored-by: Fumiya Watanabe <rej55.g@gmail.com> * chore: update text Co-authored-by: Fumiya Watanabe <rej55.g@gmail.com> * doc: update documents Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * doc: update Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * doc: small update Signed-off-by: tanaka3 <ttatcoder@outlook.jp> Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp> Signed-off-by: tanaka3 <ttatcoder@outlook.jp> Co-authored-by: Fumiya Watanabe <rej55.g@gmail.com> * feat(rtc_manager_rviz_plugin): add_indivisual_exe (#2021) Signed-off-by: tanaka3 <ttatcoder@outlook.jp> Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * feat(tier4_screen_capture_rviz_plugin): add prefix to video name (#2038) feat: add prefix * feat(tier4_debug_rviz_plugin): pie chart with float32 multi array stamped (#2055) * feat(tier4_debug_rviz_plugin): add ros2 pie chart with Float32MultiArrayStamped Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * update README.md Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * fix typo Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * fixed license Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * fix Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * removed unnecessary include Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * fix Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * fix Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * fix(tier4_control_rviz_plugin): add time stamp for control command (#2154) Signed-off-by: tanaka3 <ttatcoder@outlook.jp> Signed-off-by: tanaka3 <ttatcoder@outlook.jp> * fix(rtc_manager_rviz_plugin): size check (#2163) * feat(behavior_path_planner): external request lane change (#2442) * feature(behavior_path_planner): add external request lane change module Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feature(behavior_path_planner): fix for RTC Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feature(behavior_path_planner): fix decision logic Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feat(behavior_path_planner): fix behavior_path_planner_tree.xml Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feat(behavior_path_planner): fix for rebase Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feat(behavior_path_planner): output multiple candidate paths Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feat(behavior_path_planner): get path candidate in behavior tree manager Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feat(behavior_path_planner): fix for multiple candidate path Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feat(behavior_path_planner): separate external request lane change module Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feature(behavior_path_planner): add create publisher method Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feature(behavior_path_planner): move publishers to node Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feature(behavior_path_planner): remove unnecessary publisher Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feat(behavior_path_planner): move reset path candidate function to behavior tree manager Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feat(behavior_path_planner): add external request lane change path candidate publisher Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> feat(behavior_path_planner): apply abort lane change Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> * fix(behavior_path_planner): remove unnecessary change Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> * feat(behavior_path_planner): fix getLaneChangePaths() Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> * feat(behavior_path_planner): disable external request lane change in default tree Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> * Update rtc_auto_mode_manager.param.yaml * fix(route_handler): remove redundant code * fix(behavior_path_planner): fix for turn signal Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> * chore(rtc_manager_rviz_plugin): add code owner (#2792) Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * feat(rtc_manager_rviz_plugin): add the number of rtc status (#2791) * feat(rtc_manager_rviz_plugin): add the number of rtc status Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp> * chore: simplify layout Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp> --------- Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp> Co-authored-by: Tomoya Kimura <tomoya.kimura@tier4.jp> * feat(automatic_goal): add automatic goal rviz plugin (#3031) * add first version automatic_goal plugin Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * feat(automatic_goal): extract automatic_goal_sender, add logging achieved goals Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * doc(automatic_goal): append README Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * ref(automatic_goal): apply pre-commity, fix depend Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * fix(automatic_goal): fix warnings - treated as errors Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * ref(automatic_goal): add author, apply clang-tidy hints Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * ref(automatic_goal): add maintainer, change year Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * ref(automatic_goal): fix package.xml order Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * ref(automatic_goal): names, initializations, main except Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * fix(automatic_goal): change path home->tmp Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * fix(automatic_goal): fix bad string init, expand readme Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * fix(automatic_goal): fix name Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> --------- Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> * feat(rtc_manager_rviz_plugin): add avoidance by lc (#3118) Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(tier4_screen_capture_rviz_plugin): fix extra/missing naming components (#3207) Signed-off-by: Mehmet Dogru <42mehmetdogru42@gmail.com> * chore: sync files (#3227) * chore: sync files Signed-off-by: GitHub <noreply@github.com> * style(pre-commit): autofix --------- Signed-off-by: GitHub <noreply@github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * feat: change external lane change rtc name (#3259) * feat: change external lane change rtc name Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * update config Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> --------- Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * feat(behavior_velocity_planner::intersection): add occlusion detection feature (#3458) * migrated Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * WIP Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * IntersectionModuleManager own one rtc_interface for intersection_occlusion Signed-off-by: Mamoru Sobue <hilo.soblin@gmail.com> * divide occlusion safety and activated Signed-off-by: Mamoru Sobue <hilo.soblin@gmail.com> * fixed to update occlusion cooperate status at construction Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * fixed getOcclusionFirstStopSafety() Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * fixed not to show both intersection and intersection_occlusion after passed 1st stop line Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * fixed the intersection_occlusion/inersection stop position afte r CLEARED Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * if occlusion cleared when eog is before 1st stop line, set stop line to 1st stop line and clear prev_occlusion_stop_line_pose_ Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * (misc) fix viz, sync param Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * fixed vehicle footprint offset calculation Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * add occcupancy_grid_map method/param var to launcher Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * migrated latest Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * use static pass judge line Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * removed some params Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * organized param Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * add occlusion enable flag Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * revert occupancy grid settings in this PR Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * remove comment Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * fixed pass judge line collision detection to original Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * style(pre-commit): autofix * use vehicle_length for static pass judge line Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> * fixed virtual wall marker Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> --------- Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> Signed-off-by: Mamoru Sobue <hilo.soblin@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * fix(rtc_manager_rviz_plugin): update panel visualization properly (#3517) Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * refactor(behavior_path_planner): rename pull_over to goal_planner (#3501) Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * build: mark autoware_cmake as <buildtool_depend> (#3616) * build: mark autoware_cmake as <buildtool_depend> with <build_depend>, autoware_cmake is automatically exported with ament_target_dependencies() (unecessary) Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> * style(pre-commit): autofix * chore: fix pre-commit errors Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> --------- Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp> * build(iron): remove rmw_qos_profile_t (#3809) Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com> * refactor(start_planner): rename pull out to start planner (#3908) Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * fix(accel_brake_map_calibrator_button_panel): fix calibration service name (#4539) * fix(accel_brake_map_calibrator_button_panel): fix calibration service name Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * misc Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> --------- Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> * feat(rviz_plugin): add target object type display (#4855) * add common/tier4_target_object_type_rviz_plugin Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix format Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * update color Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * update Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add readme Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Update common/tier4_target_object_type_rviz_plugin/src/target_object_type_panel.cpp Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com> * Update common/tier4_target_object_type_rviz_plugin/src/target_object_type_panel.hpp Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com> * remove unused depend Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> --------- Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com> * fix(rtc_manager_panel): fix panel chattering (#4988) Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * build(tier4_target_object_type_rviz_plugin): add missing cv_bridge dependency (#5000) Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp> * feat(logging_level_configure): add rviz plugin to change logging level (#5112) * feat(logging_level_configure): add rviz plugin to change logging level Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * change file names Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * move initialization code from constructor to onInitialize Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add maintainer Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add maintainer Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix include Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> --------- Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * feat(logger_level_reconfigure_plugin): use node interface and some cosmetic updates (#5204) * use node service Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * enable yaml configuration Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * update yaml loading Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * make it scrollable Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * change function order Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * change color for level Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * fix depend Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * Update common/tier4_logging_level_configure_rviz_plugin/src/logging_level_configure.cpp Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com> * Update common/tier4_logging_level_configure_rviz_plugin/src/logging_level_configure.cpp --------- Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com> * refactor(lane_change): add debug log (#5308) Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * docs(logger_level_reconfigure): update readme (#5471) Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * feat(localization): enable logging_level_configure (#5487) * feat(localization): enable logging_level_configure * style(pre-commit): autofix * update logger config Signed-off-by: kminoda <koji.minoda@tier4.jp> * fix pre-commit Signed-off-by: kminoda <koji.minoda@tier4.jp> * add tier4_autoware_utils in dependency Signed-off-by: kminoda <koji.minoda@tier4.jp> * add tier4_autoware_utils in dependency Signed-off-by: kminoda <koji.minoda@tier4.jp> --------- Signed-off-by: kminoda <koji.minoda@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Logger level update (#5494) * address ordering Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add grouping Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * remove unused comment Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> --------- Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * feat(logging_level_configure_rviz_plugin): add autoware_util logger button (#5666) * feat(logging_level_configure_rviz_plugin): add autoware_util logger button Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * add for control Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> --------- Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * refactor(lane_change): standardizing lane change logger name (#5899) Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * feat(tier4_logging_level_configure_rviz_plugin): add goal/start planner (#5978) Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * chore: set log level of debug printing in rviz plugin to DEBUG (#5996) Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * feat(rviz_plugin): add string visualization plugin (#6100) Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * feat(tier4_automatic_goal_rviz_plugin): make it possible to register checkpoints (#6153) Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * chore(object_type_panel): update rosparam name config (#6347) Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * style(update): autoware tools icons (#6351) Signed-off-by: KhalilSelyan <khalil@leodrive.ai> * fix(readme): add acknowledgement for material icons in tool plugins (#6354) Signed-off-by: KhalilSelyan <khalil@leodrive.ai> * feat(mission_planner_rviz_plugin): create mission planner tool (#6362) * feat(mission_planner_rviz_plugin): create package Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * fix copyright Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * add interrupted state Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * use full license text instead of spdx Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> --------- Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> * fix(manual_controller): set PARK gear when going from reverse to drive (#6230) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * feat(logger_level_configure): make it possible to change level of container logger (#6823) * feat(launch): add logging_demo::LoggerConfig into container Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * fix(logger_level_reconfigure_plugin): fix yaml Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * feat(logging_level_configure): add composable node Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> --------- Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * revert: "feat(logger_level_configure): make it possible to change level of container logger (#6823)" (#6842) This reverts commit 9d04533. * docs(tier4_logging_level_configure_rviz_plugin): update document (#6720) * docs(tier4_logging_level_configure_rviz_plugin): update document Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix spell check Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix Warning Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * refactor(bpp, avoidance): remove unnecessary verbose flag (#6822) * refactor(avoidance): logger small change Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * refactor(bpp): remove verbose flag Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> --------- Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * feat(tier4_screen_capture_panel): add new service to capture screen shot (#6867) * feat(tier4_screen_capture_panel): add new service to capture screen shot Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * docs(tier4_screen_capture_rviz_plugin): update readme Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> --------- Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * refactor(lane_change): fix logger (#6873) Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix(route_handler): add logger (#6888) * fix(route_handler): add logger Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix indent Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * docs(tier4_simulated_clock_rviz_plugin): update how to use (#6914) * docs(tier4_simulated_clock_rviz_plugin): update how to use Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fixed tabbed warning Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix warning not working Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Fix bullet list Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * refactor(bpp): path shifter clang tidy and logging level configuration (#6917) Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix(accel_brake_calibrator): fix to set service name and exception failure (#6973) * add service * fix exception * fix style * refactor(motion_utils): supress log message with rclcpp logging (#6955) * refactor(motion_utils): supress log message with rclcpp logging Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * remove std string Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: tanaka3 <ttatcoder@outlook.jp> Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> Signed-off-by: h-ohta <hiroki.ota@tier4.jp> Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> Signed-off-by: Mehmet Dogru <42mehmetdogru42@gmail.com> Signed-off-by: GitHub <noreply@github.com> Signed-off-by: Mamoru Sobue <hilo.soblin@gmail.com> Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com> Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp> Signed-off-by: kminoda <koji.minoda@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: KhalilSelyan <khalil@leodrive.ai> Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Co-authored-by: taikitanaka3 <65527974+taikitanaka3@users.noreply.github.com> Co-authored-by: taikitanaka3 <taiki.tanaka@tier4.jp> Co-authored-by: Maxime CLEMENT <78338830+maxime-clem@users.noreply.github.com> Co-authored-by: Takagi, Isamu <43976882+isamu-takagi@users.noreply.github.com> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: awf-autoware-bot[bot] <94889083+awf-autoware-bot[bot]@users.noreply.github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com> Co-authored-by: Tomoya Kimura <tomoya.kimura@tier4.jp> Co-authored-by: Hiroki OTA <hiroki.ota@tier4.jp> Co-authored-by: Fumiya Watanabe <rej55.g@gmail.com> Co-authored-by: Takayuki Murooka <takayuki5168@gmail.com> Co-authored-by: dmoszynski <121798334+dmoszynski@users.noreply.github.com> Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com> Co-authored-by: Mehmet Dogru <48479081+mehmetdogru@users.noreply.github.com> Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com> Co-authored-by: Vincent Richard <richard-v@macnica.co.jp> Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Esteve Fernandez <33620+esteve@users.noreply.github.com> Co-authored-by: kminoda <44218668+kminoda@users.noreply.github.com> Co-authored-by: Zulfaqar Azmi <93502286+zulfaqar-azmi-t4@users.noreply.github.com> Co-authored-by: Khalil Selyan <36904941+KhalilSelyan@users.noreply.github.com> * update smoothing of start/end-point * Add simplified lateral acc limit * update debug plot * add gif * Update README.md * Update README.md * use ros param * ros param * update * update image * Update README.md * Add velocity noise * Update acc and steer noises * update rviz * update resource * Update README.md * Update README.md * Update control_data_collecting_tool/README.md Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com> * update readme * Update bag2lanelet/scripts/bag2map.py Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com> * modify sentence * chore(rtc_manager_panel): update module name (autowarefoundation#29) * chore(rtc_manager_panel): update module name Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * chore(gitignore): remove py cache Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> --------- Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> * improve pure pursuit * Update control_data_collecting_tool/scripts/data_collecting_trajectory_publisher.py Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com> * remove deprecated linearized pure pursuit * clean up traj pub * Reduce speed for large lateral error * Improve how to obtain the trajectory closest point * update readme * rename variables * compute trajectory only when receive data collecting area info * smoothing target yaw * add yaw error threshold * remove rviz config * renew png and gif * add arrow on png * feat(driving_environment_analyzer): remove dependency to autoware_auto_tf2 (autowarefoundation#31) Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp> --------- Signed-off-by: Shintaro Sakoda <shintaro.sakoda@tier4.jp> Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com> Signed-off-by: tanaka3 <ttatcoder@outlook.jp> Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp> Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp> Signed-off-by: h-ohta <hiroki.ota@tier4.jp> Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> Signed-off-by: Dawid Moszyński <dawid.moszynski@robotec.ai> Signed-off-by: Mehmet Dogru <42mehmetdogru42@gmail.com> Signed-off-by: GitHub <noreply@github.com> Signed-off-by: Mamoru Sobue <hilo.soblin@gmail.com> Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> Signed-off-by: Vincent Richard <richard-v@macnica.co.jp> Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com> Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp> Signed-off-by: kminoda <koji.minoda@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: KhalilSelyan <khalil@leodrive.ai> Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp> Co-authored-by: SakodaShintaro <rgbygscrsedppbwg@gmail.com> Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com> Co-authored-by: Mamoru Sobue <hilo.soblin@gmail.com> Co-authored-by: taikitanaka3 <65527974+taikitanaka3@users.noreply.github.com> Co-authored-by: taikitanaka3 <taiki.tanaka@tier4.jp> Co-authored-by: Maxime CLEMENT <78338830+maxime-clem@users.noreply.github.com> Co-authored-by: Takagi, Isamu <43976882+isamu-takagi@users.noreply.github.com> Co-authored-by: Kenji Miyake <kenji.miyake@tier4.jp> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: awf-autoware-bot[bot] <94889083+awf-autoware-bot[bot]@users.noreply.github.com> Co-authored-by: kenji-miyake <kenji-miyake@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com> Co-authored-by: Tomoya Kimura <tomoya.kimura@tier4.jp> Co-authored-by: Hiroki OTA <hiroki.ota@tier4.jp> Co-authored-by: Fumiya Watanabe <rej55.g@gmail.com> Co-authored-by: Takayuki Murooka <takayuki5168@gmail.com> Co-authored-by: dmoszynski <121798334+dmoszynski@users.noreply.github.com> Co-authored-by: Mehmet Dogru <48479081+mehmetdogru@users.noreply.github.com> Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com> Co-authored-by: Vincent Richard <richard-v@macnica.co.jp> Co-authored-by: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com> Co-authored-by: Esteve Fernandez <33620+esteve@users.noreply.github.com> Co-authored-by: kminoda <44218668+kminoda@users.noreply.github.com> Co-authored-by: Zulfaqar Azmi <93502286+zulfaqar-azmi-t4@users.noreply.github.com> Co-authored-by: Khalil Selyan <36904941+KhalilSelyan@users.noreply.github.com> Co-authored-by: Ryohsuke Mitsudome <43976834+mitsudome-r@users.noreply.github.com>
1 parent d4d1119 commit 1b801be

File tree

155 files changed

+11127
-474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+11127
-474
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
- id: yamllint
3535

3636
- repo: https://github.com/tier4/pre-commit-hooks-ros
37-
rev: v0.8.0
37+
rev: v0.9.0
3838
hooks:
3939
- id: flake8-ros
4040
- id: prettier-xacro
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
cmake_minimum_required(VERSION 3.14)
2+
project(mission_planner_rviz_plugin)
3+
4+
find_package(autoware_cmake REQUIRED)
5+
autoware_package()
6+
7+
find_package(Qt5 REQUIRED Core Widgets)
8+
set(QT_LIBRARIES Qt5::Widgets)
9+
set(CMAKE_AUTOMOC ON)
10+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
11+
12+
ament_auto_add_library(${PROJECT_NAME} SHARED
13+
src/mrm_goal.cpp
14+
src/route_selector_panel.cpp
15+
)
16+
17+
target_link_libraries(${PROJECT_NAME}
18+
${QT_LIBRARIES}
19+
)
20+
21+
pluginlib_export_plugin_description_file(rviz_common plugins/plugin_description.xml)
22+
23+
ament_auto_package()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# mission_planner_rviz_plugin
2+
3+
## MrmGoalTool
4+
5+
This is a copy of `rviz_default_plugins::tools::GoalTool`. Used together with the RouteSelectorPanel to set the MRM route.
6+
After adding the tool, change the topic name to `/rviz/route_selector/mrm/goal` from the topic property panel in rviz.
7+
8+
## RouteSelectorPanel
9+
10+
This panel shows the main and mrm route state in the route_selector and the route states in the mission_planner.
11+
Additionally, it provides clear and set functions for each main route and mrm route.
12+
13+
| Trigger | Action |
14+
| -------------------------------------- | ------------------------------------------------------------------------ |
15+
| main route clear button | call `/planning/mission_planning/route_selector/main/clear_route` |
16+
| mrm route clear button | call `/planning/mission_planning/route_selector/mrm/clear_route` |
17+
| `/rviz/route_selector/main/goal` topic | call `/planning/mission_planning/route_selector/main/set_waypoint_route` |
18+
| `/rviz/route_selector/mrm/goal` topic | call `/planning/mission_planning/route_selector/mrm/set_waypoint_route` |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0"?>
2+
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
3+
<package format="3">
4+
<name>mission_planner_rviz_plugin</name>
5+
<version>0.0.0</version>
6+
<description>The mission_planner_rviz_plugin package</description>
7+
<maintainer email="isamu.takagi@tier4.jp">Takagi, Isamu</maintainer>
8+
<license>Apache License 2.0</license>
9+
10+
<buildtool_depend>ament_cmake_auto</buildtool_depend>
11+
<buildtool_depend>autoware_cmake</buildtool_depend>
12+
13+
<depend>geometry_msgs</depend>
14+
<depend>libqt5-core</depend>
15+
<depend>libqt5-gui</depend>
16+
<depend>libqt5-widgets</depend>
17+
<depend>rclcpp</depend>
18+
<depend>rviz_common</depend>
19+
<depend>rviz_default_plugins</depend>
20+
<depend>tier4_planning_msgs</depend>
21+
22+
<test_depend>ament_lint_auto</test_depend>
23+
<test_depend>autoware_lint_common</test_depend>
24+
25+
<export>
26+
<build_type>ament_cmake</build_type>
27+
<rviz plugin="${prefix}/plugins/plugin_description.xml"/>
28+
</export>
29+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<library path="mission_planner_rviz_plugin">
2+
<class type="rviz_plugins::MrmGoalTool" base_class_type="rviz_common::Tool">
3+
<description>MrmGoalTool</description>
4+
</class>
5+
<class type="rviz_plugins::RouteSelectorPanel" base_class_type="rviz_common::Panel">
6+
<description>RouteSelectorPanel</description>
7+
</class>
8+
</library>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright 2024 The Autoware Contributors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#include "mrm_goal.hpp"
16+
17+
namespace rviz_plugins
18+
{
19+
20+
MrmGoalTool::MrmGoalTool()
21+
{
22+
shortcut_key_ = 'm';
23+
}
24+
25+
void MrmGoalTool::onInitialize()
26+
{
27+
GoalTool::onInitialize();
28+
setName("MRM Goal Pose");
29+
}
30+
31+
} // namespace rviz_plugins
32+
33+
#include <pluginlib/class_list_macros.hpp>
34+
PLUGINLIB_EXPORT_CLASS(rviz_plugins::MrmGoalTool, rviz_common::Tool)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright 2024 The Autoware Contributors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#ifndef MRM_GOAL_HPP_
16+
#define MRM_GOAL_HPP_
17+
18+
#include <rviz_default_plugins/tools/goal_pose/goal_tool.hpp>
19+
20+
namespace rviz_plugins
21+
{
22+
23+
class MrmGoalTool : public rviz_default_plugins::tools::GoalTool
24+
{
25+
Q_OBJECT
26+
27+
public:
28+
MrmGoalTool();
29+
void onInitialize() override;
30+
};
31+
32+
} // namespace rviz_plugins
33+
34+
#endif // MRM_GOAL_HPP_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
// Copyright 2024 The Autoware Contributors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#include "route_selector_panel.hpp"
16+
17+
#include <QGridLayout>
18+
#include <rviz_common/display_context.hpp>
19+
20+
#include <memory>
21+
#include <string>
22+
23+
namespace rviz_plugins
24+
{
25+
26+
QString to_string_state(const RouteState & state)
27+
{
28+
// clang-format off
29+
switch (state.state) {
30+
case RouteState::UNKNOWN: return "unknown";
31+
case RouteState::INITIALIZING: return "initializing";
32+
case RouteState::UNSET: return "unset";
33+
case RouteState::ROUTING: return "routing";
34+
case RouteState::SET: return "set";
35+
case RouteState::REROUTING: return "rerouting";
36+
case RouteState::ARRIVED: return "arrived";
37+
case RouteState::ABORTED: return "aborted";
38+
case RouteState::INTERRUPTED: return "interrupted";
39+
default: return "-----";
40+
}
41+
// clang-format on
42+
}
43+
44+
RouteSelectorPanel::RouteSelectorPanel(QWidget * parent) : rviz_common::Panel(parent)
45+
{
46+
main_state_ = new QLabel("unknown");
47+
main_clear_ = new QPushButton("clear");
48+
mrm_state_ = new QLabel("unknown");
49+
mrm_clear_ = new QPushButton("clear");
50+
planner_state_ = new QLabel("unknown");
51+
52+
connect(main_clear_, &QPushButton::clicked, this, &RouteSelectorPanel::onMainClear);
53+
connect(mrm_clear_, &QPushButton::clicked, this, &RouteSelectorPanel::onMrmClear);
54+
55+
const auto layout = new QGridLayout();
56+
setLayout(layout);
57+
layout->addWidget(new QLabel("main"), 0, 0);
58+
layout->addWidget(main_state_, 0, 1);
59+
layout->addWidget(main_clear_, 0, 2);
60+
layout->addWidget(new QLabel("mrm"), 1, 0);
61+
layout->addWidget(mrm_state_, 1, 1);
62+
layout->addWidget(mrm_clear_, 1, 2);
63+
layout->addWidget(new QLabel("planner"), 2, 0);
64+
layout->addWidget(planner_state_, 2, 1);
65+
}
66+
67+
void RouteSelectorPanel::onInitialize()
68+
{
69+
auto lock = getDisplayContext()->getRosNodeAbstraction().lock();
70+
auto node = lock->get_raw_node();
71+
72+
const auto durable_qos = rclcpp::QoS(1).transient_local();
73+
74+
sub_main_goal_ = node->create_subscription<PoseStamped>(
75+
"/rviz/route_selector/main/goal", rclcpp::QoS(1),
76+
std::bind(&RouteSelectorPanel::onMainGoal, this, std::placeholders::_1));
77+
sub_mrm_goal_ = node->create_subscription<PoseStamped>(
78+
"/rviz/route_selector/mrm/goal", rclcpp::QoS(1),
79+
std::bind(&RouteSelectorPanel::onMrmGoal, this, std::placeholders::_1));
80+
sub_main_state_ = node->create_subscription<RouteState>(
81+
"/planning/mission_planning/route_selector/main/state", durable_qos,
82+
std::bind(&RouteSelectorPanel::onMainState, this, std::placeholders::_1));
83+
sub_mrm_state_ = node->create_subscription<RouteState>(
84+
"/planning/mission_planning/route_selector/mrm/state", durable_qos,
85+
std::bind(&RouteSelectorPanel::onMrmState, this, std::placeholders::_1));
86+
sub_planner_state_ = node->create_subscription<RouteState>(
87+
"/planning/mission_planning/state", durable_qos,
88+
std::bind(&RouteSelectorPanel::onPlannerState, this, std::placeholders::_1));
89+
90+
cli_main_clear_ =
91+
node->create_client<ClearRoute>("/planning/mission_planning/route_selector/main/clear_route");
92+
cli_mrm_clear_ =
93+
node->create_client<ClearRoute>("/planning/mission_planning/route_selector/mrm/clear_route");
94+
cli_main_set_waypoint_ = node->create_client<SetWaypointRoute>(
95+
"/planning/mission_planning/route_selector/main/set_waypoint_route");
96+
cli_mrm_set_waypoint_ = node->create_client<SetWaypointRoute>(
97+
"/planning/mission_planning/route_selector/mrm/set_waypoint_route");
98+
}
99+
100+
void RouteSelectorPanel::onMainGoal(const PoseStamped::ConstSharedPtr msg)
101+
{
102+
const auto req = std::make_shared<SetWaypointRoute::Request>();
103+
req->header = msg->header;
104+
req->goal_pose = msg->pose;
105+
req->allow_modification = true;
106+
cli_main_set_waypoint_->async_send_request(req);
107+
}
108+
109+
void RouteSelectorPanel::onMrmGoal(const PoseStamped::ConstSharedPtr msg)
110+
{
111+
const auto req = std::make_shared<SetWaypointRoute::Request>();
112+
req->header = msg->header;
113+
req->goal_pose = msg->pose;
114+
req->allow_modification = true;
115+
cli_mrm_set_waypoint_->async_send_request(req);
116+
}
117+
118+
void RouteSelectorPanel::onMainState(RouteState::ConstSharedPtr msg)
119+
{
120+
main_state_->setText(to_string_state(*msg));
121+
}
122+
123+
void RouteSelectorPanel::onMrmState(RouteState::ConstSharedPtr msg)
124+
{
125+
mrm_state_->setText(to_string_state(*msg));
126+
}
127+
128+
void RouteSelectorPanel::onPlannerState(RouteState::ConstSharedPtr msg)
129+
{
130+
planner_state_->setText(to_string_state(*msg));
131+
}
132+
133+
void RouteSelectorPanel::onMainClear()
134+
{
135+
const auto req = std::make_shared<ClearRoute::Request>();
136+
cli_main_clear_->async_send_request(req);
137+
}
138+
139+
void RouteSelectorPanel::onMrmClear()
140+
{
141+
const auto req = std::make_shared<ClearRoute::Request>();
142+
cli_mrm_clear_->async_send_request(req);
143+
}
144+
145+
} // namespace rviz_plugins
146+
147+
#include <pluginlib/class_list_macros.hpp>
148+
PLUGINLIB_EXPORT_CLASS(rviz_plugins::RouteSelectorPanel, rviz_common::Panel)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Copyright 2024 The Autoware Contributors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#ifndef ROUTE_SELECTOR_PANEL_HPP_
16+
#define ROUTE_SELECTOR_PANEL_HPP_
17+
18+
#include <QLabel>
19+
#include <QPushButton>
20+
#include <rclcpp/rclcpp.hpp>
21+
#include <rviz_common/panel.hpp>
22+
23+
#include <geometry_msgs/msg/pose_stamped.hpp>
24+
#include <tier4_planning_msgs/msg/route_state.hpp>
25+
#include <tier4_planning_msgs/srv/clear_route.hpp>
26+
#include <tier4_planning_msgs/srv/set_waypoint_route.hpp>
27+
28+
namespace rviz_plugins
29+
{
30+
31+
using geometry_msgs::msg::PoseStamped;
32+
using tier4_planning_msgs::msg::RouteState;
33+
using tier4_planning_msgs::srv::ClearRoute;
34+
using tier4_planning_msgs::srv::SetWaypointRoute;
35+
36+
class RouteSelectorPanel : public rviz_common::Panel
37+
{
38+
Q_OBJECT
39+
40+
public:
41+
explicit RouteSelectorPanel(QWidget * parent = nullptr);
42+
void onInitialize() override;
43+
44+
private:
45+
QLabel * main_state_;
46+
QLabel * mrm_state_;
47+
QLabel * planner_state_;
48+
QPushButton * main_clear_;
49+
QPushButton * mrm_clear_;
50+
51+
rclcpp::Subscription<PoseStamped>::SharedPtr sub_main_goal_;
52+
rclcpp::Subscription<PoseStamped>::SharedPtr sub_mrm_goal_;
53+
void onMainGoal(const PoseStamped::ConstSharedPtr msg);
54+
void onMrmGoal(const PoseStamped::ConstSharedPtr msg);
55+
56+
rclcpp::Subscription<RouteState>::SharedPtr sub_main_state_;
57+
rclcpp::Subscription<RouteState>::SharedPtr sub_mrm_state_;
58+
rclcpp::Subscription<RouteState>::SharedPtr sub_planner_state_;
59+
void onMainState(RouteState::ConstSharedPtr msg);
60+
void onMrmState(RouteState::ConstSharedPtr msg);
61+
void onPlannerState(RouteState::ConstSharedPtr msg);
62+
63+
rclcpp::Client<ClearRoute>::SharedPtr cli_main_clear_;
64+
rclcpp::Client<ClearRoute>::SharedPtr cli_mrm_clear_;
65+
rclcpp::Client<SetWaypointRoute>::SharedPtr cli_main_set_waypoint_;
66+
rclcpp::Client<SetWaypointRoute>::SharedPtr cli_mrm_set_waypoint_;
67+
68+
private Q_SLOTS:
69+
void onMainClear();
70+
void onMrmClear();
71+
};
72+
73+
} // namespace rviz_plugins
74+
75+
#endif // ROUTE_SELECTOR_PANEL_HPP_

0 commit comments

Comments
 (0)