Skip to content

Commit

Permalink
feat: add rviz plugin packages (#3)
Browse files Browse the repository at this point in the history
* release v0.4.0

* remove ROS1 packages temporarily

Signed-off-by: mitsudome-r <[email protected]>

* add sample ros2 packages

Signed-off-by: mitsudome-r <[email protected]>

* remove ROS1 packages

Signed-off-by: mitsudome-r <[email protected]>

* Revert "remove ROS1 packages temporarily"

This reverts commit 7eacbcea261a65d6c305c7b0d069591ca3a2ee3a.

Signed-off-by: mitsudome-r <[email protected]>

* add COLCON_IGNORE to ros1 packages

Signed-off-by: mitsudome-r <[email protected]>

* Port autoware-perception-rviz-plugin (autowarefoundation#100)

* Port to ROS2

Signed-off-by: Servando German Serrano <[email protected]>

* Update namespaces

Signed-off-by: Servando German Serrano <[email protected]>

* Port autoware-planning-rviz-plugin (autowarefoundation#103)

* Port to ROS2

Signed-off-by: Servando German Serrano <[email protected]>

* Update deprecated

Signed-off-by: Servando German Serrano <[email protected]>

* Update namespaces

Signed-off-by: Servando German Serrano <[email protected]>

* 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

* Run uncrustify on the entire Pilot.Auto codebase (autowarefoundation#151)

* Run uncrustify on the entire Pilot.Auto codebase

* Exclude open PRs

* Fix rviz plugins (autowarefoundation#175)

* [autoware_perception_rviz_plugin] make library to shared and fix library name in plugin_description.xml

Signed-off-by: mitsudome-r <[email protected]>

* [autoware_planning_rviz_plugin] make library to shared and fix library name in plugin_description.xml

Signed-off-by: mitsudome-r <[email protected]>

* Port autoware vehicle rviz plugin (autowarefoundation#111)

* Port to ROS2

Signed-off-by: Servando German Serrano <[email protected]>

* Amend buildtool

Signed-off-by: Servando German Serrano <[email protected]>

* Fix license

Signed-off-by: Servando German Serrano <[email protected]>

* Fix

Signed-off-by: Servando German Serrano <[email protected]>

* Fixes

Signed-off-by: Servando German Serrano <[email protected]>

* adding linters to autoware_planning_rviz_plugin (autowarefoundation#224)

* adding linters to autoware_perception_rviz_plugin (autowarefoundation#225)

* [autoware_perception_rviz_plugin] make plugin library SHARED (autowarefoundation#236)

Signed-off-by: mitsudome-r <[email protected]>

* Fix bugs in autoware vehicle rviz plugin (autowarefoundation#246)

Signed-off-by: wep21 <[email protected]>

* Ros2 v0.8.0 autoware vehicle rviz plugin (autowarefoundation#333)

* add test depend

* fix console meter size (autowarefoundation#909)

* update to change font scale (autowarefoundation#910)

* Fix typos in common modules (autowarefoundation#914)

* fix typos in common modules

* minor fix (lowercasing)

* revert changes in PathPoint.msg

* Fix memory leaks in turn signal plugin (autowarefoundation#932)

* fix memory leak (QPointF)

* convert raw pointers to smart pointers

* update handle image (autowarefoundation#948)

* reduce calc cost rviz plugin (autowarefoundation#947)

* reduce calc cost

* cosmetic change

* cosmetic change

* Use CMAKE_CXX_STANDARD to enable C++14 for Qt

Signed-off-by: Kenji Miyake <[email protected]>

Co-authored-by: Kenji Miyake <[email protected]>

* change font size independency desplay (autowarefoundation#946)

* bug fix (wrong unit conversion) (autowarefoundation#956)

* Refactor autoware_vehicle_rviz_plugin (autowarefoundation#967)

* Refactor autoware_vehicle_rviz_plugin

- change smart pointers to raw pointers according to Qt convention
- remove unused headers
- remove unused variables
- cosmetic changes according to Google C++ Style Guide
- use the range-based for statement
- replace push_back with emplace_back

See also: autowarefoundation#932, autowarefoundation#964

* Apply clang-format

* Change a variable name to clarify: history -> histories

* add build testing

* appply ament_uncrustify

* apply lint

* fix bug

Co-authored-by: Yukihiro Saito <[email protected]>
Co-authored-by: Kazuki Miyahara <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>

* Ros2 v0.8.0 autoware perception rviz plugin (autowarefoundation#334)

* Fix typos in common modules (autowarefoundation#914)

* fix typos in common modules

* minor fix (lowercasing)

* revert changes in PathPoint.msg

* ament_cmake_cppcheck  -> ament_lint_common

* apply lint

Co-authored-by: Kazuki Miyahara <[email protected]>

* Ros2 v0.8.0 autoware planning rviz plugin (autowarefoundation#336)

* add speed limit visualizer (autowarefoundation#908)

* add speed limit visualizer

* 🚮

* add max velocity output

* fix bug

* update visualizer

Co-authored-by: tomoya.kimura <[email protected]>

* change font size independency desplay (autowarefoundation#946)

* ament_cmake_cppcheck -> ament_lint_common

* apply lint

* change topic type

Co-authored-by: Yukihiro Saito <[email protected]>

* Ros2 v0.8.0 remove std msgs awapi (autowarefoundation#348)

* [autoware_vehicle_msgs] add BatteryStatus msg

Signed-off-by: mitsudome-r <[email protected]>

* [autoware_planning_msgs] add ExpandStopRange and StopSpeedExceeded messages

Signed-off-by: mitsudome-r <[email protected]>

* [autoware_api_msgs] add DoorControlCommand, StopCommand, and VelocityLimit messages

Signed-off-by: mitsudome-r <[email protected]>

* remove std_msgs related to autoware_awaiv_adapter node

Signed-off-by: mitsudome-r <[email protected]>

* apply ament_uncrustify

Signed-off-by: mitsudome-r <[email protected]>

* fix build failure

Signed-off-by: mitsudome-r <[email protected]>

* fix test failures

Signed-off-by: mitsudome-r <[email protected]>

* address review commends

Signed-off-by: mitsudome-r <[email protected]>

* Ros2 v0.9.0 pose history (autowarefoundation#387)

* Port pose history to ROS2

Signed-off-by: wep21 <[email protected]>

* pose_history (autowarefoundation#1169)

* change pkg name

* add alpha

Co-authored-by: Yukihiro Saito <[email protected]>

* fix max velocity visualization (autowarefoundation#397)

* fix max velocity vis

* apply lint-format

* Ros2 rtd plugin (autowarefoundation#444)

* Use RTD instead of MFD

Signed-off-by: wep21 <[email protected]>

* Sync public repo (autowarefoundation#1228)

* [simple_planning_simulator] add readme (autowarefoundation#424)

* add readme of simple_planning_simulator

Signed-off-by: Takamasa Horibe <[email protected]>

* Update simulator/simple_planning_simulator/README.md

* set transit_margin_time to intersect. planner (autowarefoundation#460)

* Fix pose2twist (autowarefoundation#462)

Signed-off-by: Takagi, Isamu <[email protected]>

* Ros2 vehicle info param server (autowarefoundation#447)

* add vehicle_info_param_server

* update vehicle info

* apply format

* fix bug

* skip unnecessary search

* delete vehicle param file

* fix bug

* Ros2 fix topic name part2 (autowarefoundation#425)

* Fix topic name of traffic_light_classifier

Signed-off-by: Takagi, Isamu <[email protected]>

* Fix topic name of traffic_light_visualization

Signed-off-by: Takagi, Isamu <[email protected]>

* Fix topic name of traffic_light_ssd_fine_detector

Signed-off-by: Takagi, Isamu <[email protected]>

* Fix topic name of traffic_light_map_based_detector

Signed-off-by: Takagi, Isamu <[email protected]>

* Fix lint traffic_light_recognition

Signed-off-by: Takagi, Isamu <[email protected]>

* Fix lint traffic_light_ssd_fine_detector

Signed-off-by: Takagi, Isamu <[email protected]>

* Fix lint traffic_light_classifier

Signed-off-by: Takagi, Isamu <[email protected]>

* Fix lint traffic_light_classifier

Signed-off-by: Takagi, Isamu <[email protected]>

* Fix lint traffic_light_ssd_fine_detector

Signed-off-by: Takagi, Isamu <[email protected]>

* Fix issues in hdd_reader (autowarefoundation#466)

* Fix some issues detected by Coverity Scan and Clang-Tidy

* Update launch command

* Add more `close(new_sock)`

* Simplify the definitions of struct

* fix: re-construct laneletMapLayer for reindex RTree (autowarefoundation#463)

* Rviz overlay render fix (autowarefoundation#461)

* Moved painiting in SteeringAngle plugin to update()

Signed-off-by: Adam Dabrowski <[email protected]>

* super class now back to MFD

Signed-off-by: Adam Dabrowski <[email protected]>

* uncrustified

Signed-off-by: Adam Dabrowski <[email protected]>

* acquire data in mutex

Signed-off-by: Adam Dabrowski <[email protected]>

* back to RTD as superclass

Signed-off-by: Adam Dabrowski <[email protected]>

* Rviz overlay render in update (autowarefoundation#465)

* Moved painiting in SteeringAngle plugin to update()

Signed-off-by: Adam Dabrowski <[email protected]>

* super class now back to MFD

Signed-off-by: Adam Dabrowski <[email protected]>

* uncrustified

Signed-off-by: Adam Dabrowski <[email protected]>

* acquire data in mutex

Signed-off-by: Adam Dabrowski <[email protected]>

* removed unnecessary includes and some dead code

Signed-off-by: Adam Dabrowski <[email protected]>

* Adepted remaining vehicle plugin classes to render-in-update concept. Returned to MFD superclass

Signed-off-by: Adam Dabrowski <[email protected]>

* restored RTD superclass

Signed-off-by: Adam Dabrowski <[email protected]>

Co-authored-by: Takamasa Horibe <[email protected]>
Co-authored-by: tkimura4 <[email protected]>
Co-authored-by: Takagi, Isamu <[email protected]>
Co-authored-by: Kazuki Miyahara <[email protected]>
Co-authored-by: Makoto Tokunaga <[email protected]>
Co-authored-by: Adam Dąbrowski <[email protected]>

* Unify Apache-2.0 license name (autowarefoundation#1242)

* Porting trajectory rviz plugin (autowarefoundation#1295)

* update trajectory rviz plugin to show velocity (autowarefoundation#1257)

* update trajectory rviz plugin to show velocity

* use size_t instead of int to remove warning during compiling

* not show velocity on rviz unless check button is enabled

* modify visibility of velocity (autowarefoundation#1258)

* fix plugin

* add dependency

Co-authored-by: Takayuki Murooka <[email protected]>
Co-authored-by: tomoya.kimura <[email protected]>

* Fix msgs (autowarefoundation#1379)

* Fix msgs

Signed-off-by: Kenji Miyake <[email protected]>

* [autoware_planning_rviz_plugin]: Fix lint

Signed-off-by: wep21 <[email protected]>

Co-authored-by: wep21 <[email protected]>

* Fix topic name of autoware_perception_rviz_plugin (autowarefoundation#1277) (autowarefoundation#1479)

Signed-off-by: Kenji Miyake <[email protected]>

Co-authored-by: Kenji Miyake <[email protected]>

* Porting polar grid to ros2 (autowarefoundation#1507)

Signed-off-by: wep21 <[email protected]>

* Add dummy unknown publisher (autowarefoundation#1470)

* Add dummy unknown publisher

Signed-off-by: Kenji Miyake <[email protected]>
Signed-off-by: wep21 <[email protected]>

* Fix lint

Signed-off-by: wep21 <[email protected]>

Co-authored-by: Kenji Miyake <[email protected]>

* Add pre-commit (autowarefoundation#1560)

* add pre-commit

* add pre-commit-config

* add additional settings for private repository

* use default pre-commit-config

* update pre-commit setting

* Ignore whitespace for line breaks in markdown

* Update .github/workflows/pre-commit.yml

Co-authored-by: Kazuki Miyahara <[email protected]>

* exclude svg

* remove pretty-format-json

* add double-quote-string-fixer

* consider COLCON_IGNORE file when seaching modified package

* format file

* pre-commit fixes

* Update pre-commit.yml

* Update .pre-commit-config.yaml

Co-authored-by: Kazuki Miyahara <[email protected]>
Co-authored-by: pre-commit <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>

* Fix -Wunused-parameter (autowarefoundation#1836)

* Fix -Wunused-parameter

Signed-off-by: Kenji Miyake <[email protected]>

* Fix mistake

Signed-off-by: Kenji Miyake <[email protected]>

* fix spell

* Fix lint issues

Signed-off-by: Kenji Miyake <[email protected]>

* Ignore flake8 warnings

Signed-off-by: Kenji Miyake <[email protected]>

Co-authored-by: Hiroki OTA <[email protected]>

* suppress warnings for common packages (autowarefoundation#1891)

* add maybe unused

* add Werror

* fix for uncrustify

* 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

* add autoware_state_rviz_plugin (autowarefoundation#2160)

* initial commit

* fix

* use raw pointer

* fix style

* fix style

* fix style

* fix style

* fix header arrangement

* add gear check and prefix label (autowarefoundation#2173)

* add gear and prefix label

* add subscription

* fix for cpplint

* add engage button and status (autowarefoundation#2257)

* fix style

* add engage button and engage status

* use api

* fix for pre commit

* fix for cpplint

* fix

* fix for cpplint

* fix for cpplint

* fix coding style

* Add datetime panel (autowarefoundation#2275)

* Add datetime panel

* Fix/ros time (autowarefoundation#2276)

* Fix ros time

Signed-off-by: wep21 <[email protected]>

* Add icon

Signed-off-by: wep21 <[email protected]>

Co-authored-by: Daisuke Nishimatsu <[email protected]>

* add footprint in trajectory msg of rviz plugin (autowarefoundation#1553) (autowarefoundation#1684)

* add footprint in trajectory msg of rviz plugin (autowarefoundation#1553)

* add footprint in trajectory msg of rviz plugin

* update

* trajectory -> footprint

* update

* add icons

* rename trajectory footprint from footprint

* add PathFootprint

* update

* Add min value

Signed-off-by: wep21 <[email protected]>

Co-authored-by: Takayuki Murooka <[email protected]>

* Feature/trajectory point rviz plugin (autowarefoundation#2123)

* add trajectory point

* set trajectory point view false by default

* add pull over/out module (autowarefoundation#2147)

* 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 <[email protected]>

* Remove ament_cmake_uncrustify and ament_clang_format

Signed-off-by: Kenji Miyake <[email protected]>

* Apply Black

Signed-off-by: Kenji Miyake <[email protected]>

* Apply clang-format

Signed-off-by: Kenji Miyake <[email protected]>

* Fix build errors

Signed-off-by: Kenji Miyake <[email protected]>

* Fix for cpplint

* Fix include double quotes to angle brackets

Signed-off-by: Kenji Miyake <[email protected]>

* Apply clang-format

Signed-off-by: Kenji Miyake <[email protected]>

* Fix build errors

Signed-off-by: Kenji Miyake <[email protected]>

* remove unused depends (autowarefoundation#496)

* Add COLCON_IGNORE (autowarefoundation#500)

Signed-off-by: Kenji Miyake <[email protected]>

* port planning rviz plugins (autowarefoundation#492)

* port planning rviz plugins

* remove COLCON_IGNORE

Co-authored-by: Takayuki Murooka <[email protected]>

* port autoware vehicle rviz plugin (autowarefoundation#542)

* [ polar grid ] add readme polar grid remove colcon ignore (autowarefoundation#559)

* remove ignore

* add readme

* fix invalid link

* port autoware_state_rviz_plugin (autowarefoundation#563)

* remove COLCON_IGNORE form rviz plugins (autowarefoundation#544)

* port autoware_perception_rviz_plugin (autowarefoundation#581)

* add readme in rviz plugin (autowarefoundation#591)

* [autoware_vehicle_rviz_plugin/route_handler/simple_planning_simulator]fix some packages (autowarefoundation#606)

* fix console meter

* fix velocity_history

* fix route handler

* change topic name

* adding autoware_auto_perception_rviz_plugin (autowarefoundation#574)

* [152] Implement BoundingBoxArray rviz display plugin.

* [285] Clear bounding box markers before adding new markers on new message

* [274] Trajectory visualization plugin

* raw types to sized type

* ControllerTestingNode: added publish_state(), publish_trajectory(), no timer hack to start test, all init is init()

* Squashed 'src/external/mpc/' changes from 8fc7cfdd..eaa5908b

eaa5908b Merge branch 'input-weight-modify' into 'master'
b9ee8e4f Update default mpc_controller_node parameters
8d15f49d Add weights to acceleration and steer controls; loosen simulation test case:

git-subtree-dir: src/external/mpc
git-subtree-split: eaa5908bdd987051a9dcd9c505f99bfd7f028547

* [autowarefoundation#404] apply ament_auto macro to autoware_rviz_plugins

* Adding missing dependency on rviz2.

* Squashed 'src/external/autoware_auto_msgs/' changes from 56550efd..f40970ea

f40970ea Adding velocity_mps to VehicleControlCommand.

git-subtree-dir: src/external/autoware_auto_msgs
git-subtree-split: f40970ead34d36a695b432dc37accff9d67c17e2

* Update copyright headers to transfer ownership to Autoware Foundation

Signed-off-by: Juan Pablo Samper <[email protected]>

* Add CHANGELOG and update package versions for release

Add CHANGELOG and update package versions for release

* [autowarefoundation#286] Parameterize boundingbox colors from rviz
 - Add visualization colours via Qt

* [autowarefoundation#813] use autoware_set_compile_options() for nearly all compiled tests

- fix a few causes of warnings and disable warning flags as needed for
other tests
- set CXX_STANDARD strictly and only in a single place
- add CMake flag `AUTOWARE_OPTIMIZATION_OF_SLOW_TARGETS`. Default: OFF
- update building instructions and MR template
- fix nasty initialization error of static constexpr member in `GenericState`
of Kalman filter

* [autowarefoundation#910] remove private compilation warning ignore flags

* [autowarefoundation#900] Implement rviz plugin to visualize TrackedObjects

* [autowarefoundation#1110] Implement rviz plugin for DetectedObjects msg

* Resolve "Clarify meaning of pose in *ObjectKinematics messages"

* [autowarefoundation#1221] Add co-developed entry to copyright

* [autowarefoundation#1282] Fix double free in ObjectPolygonDisplayBase rviz plugin

* [autowarefoundation#1355] Make DetectedObject shape corners be in object-local coordinates

* porting AAP perception visualization from https://github.com/tier4/AutowareArchitectureProposal.iv/blob/main/perception/util/visualizer/dynamic_object_visualization/include/dynamic_object_visualization/dynamic_object_visualizer.hpp

* rename to autoware_auto_perception_rviz_plugin

* fix copyright

* format code

* fix typo

* convert camel to snake case

* Apply suggestions from code review

Co-authored-by: Daisuke Nishimatsu <[email protected]>

* change color

* replace boost::optional to std::optional

* add icons

* set marker id to value corresponding to the upper 32 bits of uuid

* format code

* change motorsycle color

* add uuid map to set marker id

* format code

* remove brief comment

* fix lint error

* fix include sort

* format code

* fix include

* add autoware_auto_perception_rviz_plugin to pre commit excluded list

Co-authored-by: Yunus Emre Caliskan <[email protected]>
Co-authored-by: Christopher Ho <[email protected]>
Co-authored-by: MIURA Yasuyuki <[email protected]>
Co-authored-by: Jit Ray Chowdhury <[email protected]>
Co-authored-by: Joshua Whitley <[email protected]>
Co-authored-by: Juan Pablo Samper <[email protected]>
Co-authored-by: Jilada Eccleston <[email protected]>
Co-authored-by: Frederik Beaujean <[email protected]>
Co-authored-by: Vincent Richard <[email protected]>
Co-authored-by: Gowtham <[email protected]>
Co-authored-by: Nikolai Morin <[email protected]>
Co-authored-by: Igor Bogoslavskyi <[email protected]>
Co-authored-by: Daisuke Nishimatsu <[email protected]>

* add autoware_auto_perception_rviz_plugin README (autowarefoundation#631)

* fix readme sentence grammar (autowarefoundation#634)

* Auto/fix perception viz (autowarefoundation#639)

* add ns of uuid

* remove dynamic_object_visualization

* update to support velocity report header (autowarefoundation#655)

* update to support velocity report header

Signed-off-by: Takamasa Horibe <[email protected]>

* Update simulator/simple_planning_simulator/src/simple_planning_simulator/simple_planning_simulator_core.cpp

Co-authored-by: tkimura4 <[email protected]>

* use maybe_unused

Signed-off-by: Takamasa Horibe <[email protected]>

* fix precommit

Signed-off-by: Takamasa Horibe <[email protected]>

Co-authored-by: tkimura4 <[email protected]>

* adapt to actuation cmd/status as control msg (autowarefoundation#646)

* adapt to actuation cmd/status as control msg

* fix readme

* fix topics

* fix remaing topics

* as to pacmod interface

* fix vehicle status

* add header to twist

* revert gyro_odometer_change

* revert twist topic change

* revert unchanged package

* FIx vehicle status topic name/type (autowarefoundation#658)

* shift -> gear_status

* twist -> velocity_status

* Sync .auto branch with the latest branch in internal repository (autowarefoundation#691)

* add trajectory point offset in rviz plugin (autowarefoundation#2270)

* sync rc rc/v0.23.0 (autowarefoundation#2258)

* fix interpolation for insert point (autowarefoundation#2228)

* fix interpolation for insert point

* to prev interpolation pkg

* Revert "to prev interpolation pkg"

This reverts commit 9eb145b5d36e297186015fb17c267ccd5b3c21ef.

Co-authored-by: taikitanaka3 <[email protected]>
Co-authored-by: taikitanaka <[email protected]>

* fix topic name (autowarefoundation#2266)

Signed-off-by: Takamasa Horibe <[email protected]>

* Add namespace to diag for dual_return_filter (autowarefoundation#2269)

* Add a function to make 'geometry_msgs::msg::TransformStamped' (autowarefoundation#2250)

* Add a function to make 'geometry_msgs::msg::TransformStamped'
* Add 'child_frame_id' as an argument of 'pose2transform'

* Simplify marker scale initialization (autowarefoundation#2286)

* Fix/crosswalk polygon (autowarefoundation#2279)

* extend crosswalk polygon

* improve readability

* fix polygon shape

* Add warning when decel distance calculation fails (autowarefoundation#2289)

Signed-off-by: Makoto Kurihara <[email protected]>

* [motion_velocity_smoother] ignore debug print (autowarefoundation#2292)

* cosmetic change

Signed-off-by: Takamasa Horibe <[email protected]>

* cahnge severity from WARN to DEBUG for debug info

Signed-off-by: Takamasa Horibe <[email protected]>

* use util for stop_watch

Signed-off-by: Takamasa Horibe <[email protected]>

* fix map based prediction (autowarefoundation#2200)

* fix map based prediction

* fix format

* change map based prediction

* fix spells

* fix spells in comments

* fix for cpplint

* fix some problems

* fix format and code for clang-tidy

* fix space for cpplint

* Update Readme.md

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

* fix vector access method

* fix readme format

* add parameter

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

Co-authored-by: Kazuki Miyahara <[email protected]>

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

Co-authored-by: Kazuki Miyahara <[email protected]>

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

Co-authored-by: Kazuki Miyahara <[email protected]>

* Update Readme.md

* Update perception/object_recognition/prediction/map_based_prediction/Readme.md

Co-authored-by: Kazuki Miyahara <[email protected]>

Co-authored-by: tkimura4 <[email protected]>
Co-authored-by: Kazuki Miyahara <[email protected]>

* remove failure condition for 0 velocity trajectory (autowarefoundation#2295)

Signed-off-by: Takamasa Horibe <[email protected]>

* [mpc_follower] remove stop distance condition from stopState decision (autowarefoundation#1916)

* [mpc_follower] remove stop distance condition from stopState decision

Signed-off-by: Takamasa Horibe <[email protected]>

* add invalid index handling

Signed-off-by: Takamasa Horibe <[email protected]>

* Move the debug marker initialization part to another file (autowarefoundation#2288)

* Move the debug marker initialization part to 'debug.cpp'

* Make 'isLocalOptimalSolutionOscillation' independent from 'NDTScanMatcher' (autowarefoundation#2300)

* Remove an unused function 'getTransform' (autowarefoundation#2301)

* Simplify iteration of initial poses (autowarefoundation#2310)

* Make a transform object const (autowarefoundation#2311)

* Represent poses in 'std::vector' instead of 'geometry_msgs::msg::PoseArray' (autowarefoundation#2312)

* Feature/no stopping area (autowarefoundation#2163)

* add no stopping area module to behavior velocity planner

* apply utils

* add polygon interpolation module order stopline around area is considered

* devide jpass udge with stop line polygon

* update docs

* rename file name

* update to latest

* minor change for marker

* update license

Co-authored-by: Yukihiro Saito <[email protected]>

* update license

Co-authored-by: Yukihiro Saito <[email protected]>

* update license

Co-authored-by: Yukihiro Saito <[email protected]>

* update license

Co-authored-by: Yukihiro Saito <[email protected]>

* minor fix

* add parameter tuning at experiment

* update readme

* format doc

* apply comments

* add exception gurd

* cosmetic change

* fix ament

* fix typo and remove for statement

* & to " "

* better ns

* return pass judge param

* add missing stoppable condition

* add clear pass judge and stoppable flag

* add comment

* precommit fix

* cpplint

Co-authored-by: Yukihiro Saito <[email protected]>

* sync rc rc/v0.23.0 (autowarefoundation#2281)

* Fix side shift planner (autowarefoundation#2171) (autowarefoundation#2172)

* add print debug

Signed-off-by: TakaHoribe <[email protected]>

* remove forward shift points when adding new point

Signed-off-by: TakaHoribe <[email protected]>

* remove debug print

Signed-off-by: TakaHoribe <[email protected]>

* format

Signed-off-by: TakaHoribe <[email protected]>

* Fix remove threshold

Co-authored-by: Fumiya Watanabe <[email protected]>

Co-authored-by: Takamasa Horibe <[email protected]>

* Fix/pull out and pull over (autowarefoundation#2175)

* delete unnecessary check

* fix condition of starting pull out

* Add emergency status API (autowarefoundation#2174) (autowarefoundation#2182)

* Fix/mpc reset prev result (autowarefoundation#2185) (autowarefoundation#2195)

* reset prev result

* clean code

* reset only raw_steer_cmd

* Update control/mpc_follower/src/mpc_follower_core.cpp

Co-authored-by: Takamasa Horibe <[email protected]>

Co-authored-by: Takamasa Horibe <[email protected]>

Co-authored-by: Takamasa Horibe <[email protected]>

* [hotfix] 1 path point exception after resampling (autowarefoundation#2204)

* fix 1 path point exception after resampling

Signed-off-by: TakaHoribe <[email protected]>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Takamasa Horibe <[email protected]>

Co-authored-by: tkimura4 <[email protected]>

* [hotfix] Fix lane ids (autowarefoundation#2211)

* Fix lane ids

* Prevent acceleration on avoidance (autowarefoundation#2214)

* prevent acceleration on avoidance

Signed-off-by: TakaHoribe <[email protected]>

* fix param name

Signed-off-by: TakaHoribe <[email protected]>

* parametrize avoidance acc

Signed-off-by: Takamasa Horibe <[email protected]>

* change param name

Signed-off-by: Takamasa Horibe <[email protected]>

* fix typo

Signed-off-by: Takamasa Horibe <[email protected]>

* Fix qos in roi cluster fusion (autowarefoundation#2218)

* fix confidence (autowarefoundation#2220)

* too high confidence (autowarefoundation#2229)

* Fix/obstacle stop 0.23.0 (autowarefoundation#2232)

* fix unexpected slow down in sharp curves (autowarefoundation#2181)

* Fix/insert implementation (autowarefoundation#2186)

Co-authored-by: Satoshi OTA <[email protected]>

* [hotfix] Remove exception in avoidance module (autowarefoundation#2233)

* Remove exception

* Fix clock

* Remove blank line

* Update traffic light state if ref stop point is ahead of previous one (autowarefoundation#2197)

Signed-off-by: wep21 <[email protected]>

* fix interpolation for insert point (autowarefoundation#2228)

* fix interpolation for insert point

* to prev interpolation pkg

* fix index (autowarefoundation#2265)

* turn signal calculation (#2280)

* add turn signal funtion in path shifter

* add ros parameters

Co-authored-by: Fumiya Watanabe <[email protected]>
Co-authored-by: Takamasa Horibe <[email protected]>
Co-authored-by: tkimura4 <[email protected]>
Co-authored-by: Takagi, Isamu <[email protected]>
Co-authored-by: Daisuke Nishimatsu <[email protected]>
Co-authored-by: Yukihiro Saito <[email protected]>
Co-authored-by: Satoshi OTA <[email protected]>
Co-authored-by: taikitanaka3 <[email protected]>
Co-authored-by: Sugatyon <[email protected]>

* [behavior_path_planner] fix sudden path change around ego (autowarefoundation#2305) (autowarefoundation#2318)

* fix return-from-ego shift point generation logic

Signed-off-by: Takamasa Horibe <[email protected]>

* change param for trimSimilarGradShiftPoint

Signed-off-by: Takamasa Horibe <[email protected]>

* add comment for issue

Signed-off-by: Takamasa Horibe <[email protected]>

* update comment

Signed-off-by: Takamasa Horibe <[email protected]>

* replace code with function (logic has not changed)

Signed-off-by: Takamasa Horibe <[email protected]>

* move func to cpp

Signed-off-by: Takamasa Horibe <[email protected]>

* add comment for issue

Signed-off-by: Takamasa Horibe <[email protected]>

* fix typo

Signed-off-by: Takamasa Horibe <[email protected]>

* Update planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/src/scene_module/avoidance/avoidance_module.cpp

Co-authored-by: Kazuki Miyahara <[email protected]>

* Update planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/src/scene_module/avoidance/avoidance_module.cpp

Co-authored-by: Kazuki Miyahara <[email protected]>

Co-authored-by: Kazuki Miyahara <[email protected]>

Co-authored-by: Takamasa Horibe <[email protected]>
Co-authored-by: Kazuki Miyahara <[email protected]>

* Add functions to make stamped scalar messages (autowarefoundation#2317)

* Fix/object yaw in intersection module (autowarefoundation#2294)

* fix object orientation

* fix function name

* add guard (autowarefoundation#2321)

* reduce cost (double to float) (autowarefoundation#2298)

* Add detail collision check (autowarefoundation#2274)

* Add detail collision check

Signed-off-by: wep21 <[email protected]>

* Remove unused function

Signed-off-by: wep21 <[email protected]>

* Fix arc length

Signed-off-by: wep21 <[email protected]>

* Seperate time margin

Signed-off-by: wep21 <[email protected]>

* Fix parameter name

Signed-off-by: wep21 <[email protected]>

* Update Readme

Signed-off-by: wep21 <[email protected]>

* Address review: Add comment for TimeDistanceArray

Signed-off-by: wep21 <[email protected]>

* Run pre-commit

Signed-off-by: wep21 <[email protected]>

* Fix cpplint

Signed-off-by: wep21 <[email protected]>

* Add return for empty polygon

Signed-off-by: wep21 <[email protected]>

* update CenterPoint  (autowarefoundation#2222)

* update to model trained by mmdet3d

* add vizualizer (debug)

* for multi-frame inputs

* chagne config

* use autoware_utils::pi

* project specific model and param

* rename vfe -> encoder

* rename general to common

* update download link

* update

* fix

* rename model_name

* change training toolbox link

* chage lint package

* fix test error

* commit suggestion

* Feature/lane change detection (autowarefoundation#2331)

* add old information deleter

* fix access bug

* change to deque

* update obstacle buffer

* fix some bugs

* add lane change detector

* make a update lanelet function

* fix code style

* parameterize essential values

* Update perception/object_recognition/prediction/map_based_prediction/src/map_based_prediction_ros.cpp

Co-authored-by: Kazuki Miyahara <[email protected]>

* fix slash position

* remove unnecessary lines

* fix format

* fix format

* change to new enum

* fix format

* fix typo and add guard

* change funciton name

* add lane change description

Co-authored-by: Kazuki Miyahara <[email protected]>

* Add Planning Evaluator  (autowarefoundation#2293)

* Add prototype planning evaluator

Produced data for dist between points, curvature, and relative angle

* Cleanup the code to make adding metrics easier

* Add remaining basic metrics (length, duration, vel, accel, jerk)

* Add motion_evaluator to evaluate the actual ego motion + code cleanup

* Add deviation metrics

* Add naive stability metric

* Handle invalid stat (TODO: fix the output file formatting)

* Add parameter file and cleanup

* Add basic obstacle metric (TTC not yet implemented) and fix output file format

* Add basic time to collision

* Add lateral-distance based stability metric

* Add check (at init time) that metrics' maps are complete

* Publish metrics as ParamaterDeclaration msg (for openscenario)

* Use lookahead and start from ego_pose when calculating stability metrics

* Code cleanup

* Fix lint

* Add tests

* Fix bug with Frechet dist and the last traj point

* Finish implementing tests

* Fix lint

* Code cleanup

* Update README.md

* Remove unused metric

* Change msg type of published metrics to DiagnosticArray

* fix format to fix pre-commit check

Signed-off-by: Takamasa Horibe <[email protected]>

* fix yaml format to fix pre-commit check

Signed-off-by: Takamasa Horibe <[email protected]>

* fix yaml format

Signed-off-by: Takamasa Horibe <[email protected]>

* apply clang-format

Signed-off-by: Takamasa Horibe <[email protected]>

* apply clang-format

Signed-off-by: Takamasa Horibe <[email protected]>

* Update planning/planning_diagnostics/planning_evaluator/include/planning_evaluator/planning_evaluator_node.hpp

* Update planning/planning_diagnostics/planning_evaluator/test/test_planning_evaluator_node.cpp

* Update planning/planning_diagnostics/planning_evaluator/test/test_planning_evaluator_node.cpp

* change lint format to autoware_lint_common

Signed-off-by: Takamasa Horibe <[email protected]>

Co-authored-by: Takamasa Horibe <[email protected]>

* Add keep braking function at driving state (autowarefoundation#2346)

* Add keep braking function at driving state

Signed-off-by: Makoto Kurihara <[email protected]>

* Remove debug messages

Signed-off-by: Makoto Kurihara <[email protected]>

* Fix format

Signed-off-by: Makoto Kurihara <[email protected]>

* Change diag_updater's pediod from default to 0.1sec (autowarefoundation#2348)

* add cross judgement and common signal function (autowarefoundation#2319)

* merge branch turn_signal_common

* add turn signal function in signal decider

* add cross judge in path_utilities and delete from turn_signal_decider

* remove original signal calculation in lane change

* omit substitution

* replace turn signal decider in pull over function

* modify cross judge logic

* replace turn signal decider in avoidance

* add readme of turn signal

* update

* delete print debug

* update

* delete lane change decider in path shifter

* delete blank line

* fix indent

* fix typo

* fix typo

* decrease nest

* run pre commit

* Add 0 limit at forward jerk velocity filter (autowarefoundation#2340)

Signed-off-by: Makoto Kurihara <[email protected]>

* add time offset param to point cloud concatenation (autowarefoundation#2303)

* add offset param

* clang-format

Co-authored-by: Akihito OHSATO <[email protected]>

* Feature/add doc for keep braking function at driving state (autowarefoundation#2366)

* Add the description of brake keeping

Signed-off-by: Makoto Kurihara <[email protected]>

* Add the english document

Signed-off-by: Makoto Kurihara <[email protected]>

* Improve description

Signed-off-by: Makoto Kurihara <[email protected]>

* Add english description

Signed-off-by: Makoto Kurihara <[email protected]>

* Fix include files (autowarefoundation#2339)

Signed-off-by: Kenji Miyake <[email protected]>

* fix behavior intersection module

* fix behavior no stopping area module

* fix planning_evaluator

* fix motion_velocity_smoother

* rename variable

* Revert "[mpc_follower] remove stop distance condition from stopState decision (autowarefoundation#1916)"

This reverts commit ff4f0b5a844d1f835f1b93bd3b36a76747b0cd02.

* Revert "Add keep braking function at driving state (autowarefoundation#2346)"

This reverts commit f0478187db4c28bf6092c198723dcc5ec11a9c70.

* Revert "Feature/add doc for keep braking function at driving state (autowarefoundation#2366)"

This reverts commit 66de2f3924a479049fce2d5c5c6b579cacbd3e49.

* Fix orientation availability in centerpoint

Signed-off-by: wep21 <[email protected]>

* fix test_trajectory.cpp

* add target link libraries

* Use .auto msg in test code for planniing evaluator

Signed-off-by: wep21 <[email protected]>

* fix include

Signed-off-by: wep21 <[email protected]>

Co-authored-by: Takayuki Murooka <[email protected]>
Co-authored-by: autoware-iv-sync-ci[bot] <87871706+autoware-iv-sync-ci[bot]@users.noreply.github.com>
Co-authored-by: taikitanaka3 <[email protected]>
Co-authored-by: taikitanaka <[email protected]>
Co-authored-by: Takamasa Horibe <[email protected]>
Co-authored-by: Takeshi Miura <[email protected]>
Co-authored-by: Takeshi Ishita <[email protected]>
Co-authored-by: Satoshi OTA <[email protected]>
Co-authored-by: Makoto Kurihara <[email protected]>
Co-authored-by: purewater0901 <[email protected]>
Co-authored-by: tkimura4 <[email protected]>
Co-authored-by: Kazuki Miyahara <[email protected]>
Co-authored-by: Yukihiro Saito <[email protected]>
Co-authored-by: Fumiya Watanabe <[email protected]>
Co-authored-by: Takagi, Isamu <[email protected]>
Co-authored-by: Sugatyon <[email protected]>
Co-authored-by: s-murakami-esol <[email protected]>
Co-authored-by: Yusuke Muramatsu <[email protected]>
Co-authored-by: Maxime CLEMENT <[email protected]>
Co-authored-by: Shunsuke Miura <[email protected]>
Co-authored-by: Shinnosuke Hirakawa <[email protected]>
Co-authored-by: Akihito OHSATO <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>

* [autoware_auto_perception_rviz_plugin]fix bug (autowarefoundation#721)

* fix perception_marker

* fix missing commit

* apply format

* patch for PR721 (autowarefoundation#722)

* fix id_map erase operation

* fix code to use c++11 function

* update tracked_objects_display

* fix bug

Co-authored-by: Taichi Higashide <[email protected]>

* fix rviz plugin (autowarefoundation#743)

* move plugin packages

* add ignore file to apply pre-commit

Co-authored-by: mitsudome-r <[email protected]>
Co-authored-by: Servando <[email protected]>
Co-authored-by: Nikolai Morin <[email protected]>
Co-authored-by: Ryohsuke Mitsudome <[email protected]>
Co-authored-by: nik-tier4 <[email protected]>
Co-authored-by: Daisuke Nishimatsu <[email protected]>
Co-authored-by: Yukihiro Saito <[email protected]>
Co-authored-by: Kazuki Miyahara <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
Co-authored-by: Takamasa Horibe <[email protected]>
Co-authored-by: Takagi, Isamu <[email protected]>
Co-authored-by: Makoto Tokunaga <[email protected]>
Co-authored-by: Adam Dąbrowski <[email protected]>
Co-authored-by: Keisuke Shima <[email protected]>
Co-authored-by: Takayuki Murooka <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
Co-authored-by: wep21 <[email protected]>
Co-authored-by: Keisuke Shima <[email protected]>
Co-authored-by: pre-commit <[email protected]>
Co-authored-by: Hiroki OTA <[email protected]>
Co-authored-by: kyoichi sugahara <[email protected]>
Co-authored-by: taikitanaka3 <[email protected]>
Co-authored-by: Takayuki Murooka <[email protected]>
Co-authored-by: Takeshi Miura <[email protected]>
Co-authored-by: Taichi Higashide <[email protected]>
Co-authored-by: Yunus Emre Caliskan <[email protected]>
Co-authored-by: Christopher Ho <[email protected]>
Co-authored-by: MIURA Yasuyuki <[email protected]>
Co-authored-by: Jit Ray Chowdhury <[email protected]>
Co-authored-by: Joshua Whitley <[email protected]>
Co-authored-by: Juan Pablo Samper <[email protected]>
Co-authored-by: Jilada Eccleston <[email protected]>
Co-authored-by: Frederik Beaujean <[email protected]>
Co-authored-by: Vincent Richard <[email protected]>
Co-authored-by: Gowtham <[email protected]>
Co-authored-by: Nikolai Morin <[email protected]>
Co-authored-by: Igor Bogoslavskyi <[email protected]>
Co-authored-by: autoware-iv-sync-ci[bot] <87871706+autoware-iv-sync-ci[bot]@users.noreply.github.com>
Co-authored-by: taikitanaka <[email protected]>
Co-authored-by: Takeshi Ishita <[email protected]>
Co-authored-by: Satoshi OTA <[email protected]>
Co-authored-by: Makoto Kurihara <[email protected]>
Co-authored-by: purewater0901 <[email protected]>
Co-authored-by: Fumiya Watanabe <[email protected]>
Co-authored-by: Sugatyon <[email protected]>
Co-authored-by: s-murakami-esol <[email protected]>
Co-authored-by: Yusuke Muramatsu <[email protected]>
Co-authored-by: Maxime CLEMENT <[email protected]>
Co-authored-by: Shunsuke Miura <[email protected]>
Co-authored-by: Shinnosuke Hirakawa <[email protected]>
Co-authored-by: Akihito OHSATO <[email protected]>
  • Loading branch information
Show file tree
Hide file tree
Showing 127 changed files with 8,504 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ repos:
args: ["--quiet"]
exclude: ".cu"

exclude: ".svg"
exclude: ".svg|common/autoware_auto_perception_rviz_plugin"
84 changes: 84 additions & 0 deletions common/autoware_auto_perception_rviz_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Copyright 2019 The Autoware Foundation
#
# 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.
#
# Co-developed by Tier IV, Inc. and Apex.AI, Inc.

cmake_minimum_required(VERSION 3.5)
project(autoware_auto_perception_rviz_plugin)

#dependencies
find_package(ament_cmake_auto REQUIRED)
find_package(Qt5 REQUIRED COMPONENTS Widgets)
ament_auto_find_build_dependencies()

set(OD_PLUGIN_LIB_SRC
src/object_detection/detected_objects_display.cpp
src/object_detection/tracked_objects_display.cpp
src/object_detection/predicted_objects_display.cpp
)

set(OD_PLUGIN_LIB_HEADERS
include/visibility_control.hpp
)
set(OD_PLUGIN_LIB_HEADERS_TO_WRAP
include/object_detection/detected_objects_display.hpp
include/object_detection/tracked_objects_display.hpp
include/object_detection/predicted_objects_display.hpp
)

set(COMMON_HEADERS
include/common/color_alpha_property.hpp
include/object_detection/object_polygon_detail.hpp
include/object_detection/object_polygon_display_base.hpp
)

set(COMMON_SRC
src/common/color_alpha_property.cpp
src/object_detection/object_polygon_detail.cpp
)

foreach(header "${OD_PLUGIN_LIB_HEADERS_TO_WRAP}")
qt5_wrap_cpp(OD_PLUGIN_LIB_HEADERS_MOC "${header}")
endforeach()

ament_auto_add_library(${PROJECT_NAME} SHARED
${COMMON_HEADERS}
${COMMON_SRC}
${OD_PLUGIN_LIB_HEADERS}
${OD_PLUGIN_LIB_HEADERS_MOC}
${OD_PLUGIN_LIB_SRC}
)
target_link_libraries(${PROJECT_NAME}
rviz_common::rviz_common
Qt5::Widgets
)
target_include_directories(${PROJECT_NAME} PRIVATE include)

# Settings to improve the build as suggested on https://github.com/ros2/rviz/blob/ros2/docs/plugin_development.md
target_compile_definitions(${PROJECT_NAME} PUBLIC "PLUGINLIB__DISABLE_BOOST_FUNCTIONS")
target_compile_definitions(${PROJECT_NAME} PRIVATE "OBJECT_DETECTION_PLUGINS_BUILDING_LIBRARY")

# Export the plugin to be imported by rviz2
pluginlib_export_plugin_description_file(rviz_common plugins_description.xml)

if(BUILD_TESTING)
# run linters
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package(
INSTALL_TO_SHARE
icons
)
62 changes: 62 additions & 0 deletions common/autoware_auto_perception_rviz_plugin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# autoware_auto_perception_plugin

## Purpose

It is an rviz plugin for visualizing the result from perception module. This package is based on the implementation of the rviz plugin developed by Autoware.Auto.

See Autoware.Auto design documentation for the original design philosophy. [[1]](https://gitlab.com/autowarefoundation/autoware.auto/AutowareAuto/-/blob/master/src/tools/visualization/autoware_rviz_plugins)

<!-- Write the purpose of this package and briefly describe the features.
Example:
{package_name} is a package for planning trajectories that can avoid obstacles.
This feature consists of two steps: obstacle filtering and optimizing trajectory.
-->

## Input Types / Visualization Results

### DetectedObjects

#### Input Types

| Name | Type | Description |
| ---- | ----------------------------------------------------- | ---------------------- |
| | `autoware_auto_perception_msgs::msg::DetectedObjects` | detection result array |

#### Visualization Result

![](./images/detected-object-visualization-description.jpg)

### TrackedObjects

#### Input Types

| Name | Type | Description |
| ---- | ---------------------------------------------------- | --------------------- |
| | `autoware_auto_perception_msgs::msg::TrackedObjects` | tracking result array |

#### Visualization Result

Overwrite tracking results with detection results.

![](./images/tracked-object-visualization-description.jpg)

### PredictedObjects

#### Input Types

| Name | Type | Description |
| ---- | ------------------------------------------------------ | ----------------------- |
| | `autoware_auto_perception_msgs::msg::PredictedObjects` | prediction result array |

#### Visualization Result

Overwrite prediction results with tracking results.

![](./images/predicted-object-visualization-description.jpg)

## References/External links

[1] https://gitlab.com/autowarefoundation/autoware.auto/AutowareAuto/-/tree/master/src/tools/visualization/autoware_rviz_plugins

## Future extensions / Unimplemented parts
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// Copyright 2021 Apex.AI, Inc.
//
// 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.
#ifndef COMMON__COLOR_ALPHA_PROPERTY_HPP_
#define COMMON__COLOR_ALPHA_PROPERTY_HPP_

#include <memory>
#include <rviz_common/display.hpp>
#include <rviz_common/properties/color_property.hpp>
#include <rviz_common/properties/float_property.hpp>
#include <std_msgs/msg/color_rgba.hpp>
#include <visibility_control.hpp>

namespace autoware
{
namespace rviz_plugins
{
namespace common
{
/// \brief Class to define Color and Alpha values as plugin properties
class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ColorAlphaProperty
{
public:
/// \brief Constructor
/// \param color_default Default value for color property
/// \param alpha_default Default value for alpha property
/// \param parent_property Parent property for the color and alpha properties. Memory managed
/// by the caller
ColorAlphaProperty(
const QColor & color_default, const float alpha_default,
rviz_common::properties::Property * parent_property);

/// \brief Convert color and alpha to ColorRGBA type
/// \return color and alpha values as ColorRGBA type
operator std_msgs::msg::ColorRGBA() const;

private:
rviz_common::properties::ColorProperty m_color_property;
rviz_common::properties::FloatProperty m_alpha_property;
};

} // namespace common
} // namespace rviz_plugins
} // namespace autoware

#endif // COMMON__COLOR_ALPHA_PROPERTY_HPP_
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright 2021 Apex.AI, Inc.
//
// 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.
#ifndef OBJECT_DETECTION__DETECTED_OBJECTS_DISPLAY_HPP_
#define OBJECT_DETECTION__DETECTED_OBJECTS_DISPLAY_HPP_

#include <autoware_auto_perception_msgs/msg/detected_objects.hpp>
#include <object_detection/object_polygon_display_base.hpp>

namespace autoware
{
namespace rviz_plugins
{
namespace object_detection
{
/// \brief Class defining rviz plugin to visualize DetectedObjects
class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC DetectedObjectsDisplay
: public ObjectPolygonDisplayBase<autoware_auto_perception_msgs::msg::DetectedObjects>
{
Q_OBJECT

public:
using DetectedObjects = autoware_auto_perception_msgs::msg::DetectedObjects;

DetectedObjectsDisplay();

private:
void processMessage(DetectedObjects::ConstSharedPtr msg) override;
};

} // namespace object_detection
} // namespace rviz_plugins
} // namespace autoware

#endif // OBJECT_DETECTION__DETECTED_OBJECTS_DISPLAY_HPP_
Loading

0 comments on commit 0fdbc9d

Please sign in to comment.