Skip to content

Commit

Permalink
po
Browse files Browse the repository at this point in the history
  • Loading branch information
takayuki5168 committed Feb 4, 2023
1 parent eb6e724 commit 86b0a07
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ template <typename T>
class AutowareFootprintDisplay
: public rviz_common::MessageFilterDisplay<T>
{
Q_OBJECT

public:
AutowareFootprintDisplay()
{
Expand Down Expand Up @@ -114,6 +112,7 @@ class AutowareFootprintDisplay
point_manual_object_->setDynamic(true);
this->scene_node_->attachObject(point_manual_object_);
}

void reset() override
{
rviz_common::MessageFilterDisplay<T>::MFDClass::reset();
Expand Down Expand Up @@ -310,6 +309,7 @@ private Q_SLOTS:
}
float length, width, rear_overhang;
};

std::shared_ptr<VehicleInfo> vehicle_info_;
std::shared_ptr<VehicleFootprintInfo> vehicle_footprint_info_;

Expand All @@ -327,8 +327,10 @@ private Q_SLOTS:
};

class AutowareTrajectoryFootprintDisplay
: public AutowareFootprintDisplay<autoware_auto_planning_msgs::msg::Trajectory>
: public AutowareFootprintDisplay<autoware_auto_planning_msgs::msg::Trajectory>
{
Q_OBJECT

public:
AutowareTrajectoryFootprintDisplay();
};
Expand Down
10 changes: 5 additions & 5 deletions common/tier4_planning_rviz_plugin/plugins/plugin_description.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
base_class_type="rviz_common::Display">
<description>Display trajectory points of autoware_auto_planning_msg::Trajectory</description>
</class>
<!-- <class name="rviz_plugins/TrajectoryFootprint" -->
<!-- type="rviz_plugins::AutowareTrajectoryFootprintDisplay" -->
<!-- base_class_type="rviz_common::Display"> -->
<!-- <description>Display footprint of autoware_auto_planning_msg::Trajectory</description> -->
<!-- </class> -->
<class name="rviz_plugins/TrajectoryFootprint"
type="rviz_plugins::AutowareTrajectoryFootprintDisplay"
base_class_type="rviz_common::Display">
<description>Display footprint of autoware_auto_planning_msg::Trajectory</description>
</class>
<class name="rviz_plugins/MaxVelocity"
type="rviz_plugins::MaxVelocityDisplay"
base_class_type="rviz_common::Display">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ namespace rviz_plugins
}

#include <tf2/utils.h>
// PLUGINLIB_EXPORT_CLASS(rviz_plugins::AutowareTrajectoryFootprintDisplay, rviz_common::Display)
PLUGINLIB_EXPORT_CLASS(rviz_plugins::AutowareTrajectoryFootprintDisplay, rviz_common::Display)

0 comments on commit 86b0a07

Please sign in to comment.