Skip to content

Commit

Permalink
build(tier4_perception_rviz_plugin): fix namespace for downstream dep…
Browse files Browse the repository at this point in the history
…endencies of autoware_dummy_perception_publisher

Signed-off-by: Esteve Fernandez <[email protected]>
  • Loading branch information
esteve committed Jan 31, 2024
1 parent 47d4a95 commit 848b7f8
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions common/tier4_perception_rviz_plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ The DeleteAllObjectsTool deletes the dummy cars, pedestrians, and obstacles disp

### Output

| Name | Type | Description |
| ---------------------------------------------------- | ----------------------------------------- | ----------------------------------------------- |
| `/simulation/dummy_perception_publisher/object_info` | `dummy_perception_publisher::msg::Object` | The topic on which to publish dummy object info |
| Name | Type | Description |
| ---------------------------------------------------- | -------------------------------------------------- | ----------------------------------------------- |
| `/simulation/dummy_perception_publisher/object_info` | `autoware_dummy_perception_publisher::msg::Object` | The topic on which to publish dummy object info |

## Parameter

Expand Down
2 changes: 1 addition & 1 deletion common/tier4_perception_rviz_plugin/src/tools/car_pose.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace rviz_plugins

using autoware_auto_perception_msgs::msg::ObjectClassification;
using autoware_auto_perception_msgs::msg::Shape;
using dummy_perception_publisher::msg::Object;
using autoware_dummy_perception_publisher::msg::Object;

class CarInitialPoseTool : public InteractiveObjectTool
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,23 @@ void DeleteAllObjectsTool::onInitialize()
void DeleteAllObjectsTool::updateTopic()
{
rclcpp::Node::SharedPtr raw_node = context_->getRosNodeAbstraction().lock()->get_raw_node();
dummy_object_info_pub_ = raw_node->create_publisher<dummy_perception_publisher::msg::Object>(
dummy_object_info_pub_ = raw_node->create_publisher<autoware_dummy_perception_publisher::msg::Object>(
topic_property_->getStdString(), 1);
clock_ = raw_node->get_clock();
}

void DeleteAllObjectsTool::onPoseSet(
[[maybe_unused]] double x, [[maybe_unused]] double y, [[maybe_unused]] double theta)
{
dummy_perception_publisher::msg::Object output_msg;
autoware_dummy_perception_publisher::msg::Object output_msg;
std::string fixed_frame = context_->getFixedFrame().toStdString();

// header
output_msg.header.frame_id = fixed_frame;
output_msg.header.stamp = clock_->now();

// action
output_msg.action = dummy_perception_publisher::msg::Object::DELETEALL;
output_msg.action = autoware_dummy_perception_publisher::msg::Object::DELETEALL;

dummy_object_info_pub_->publish(output_msg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private Q_SLOTS:

private: // NOLINT for Qt
rclcpp::Clock::SharedPtr clock_;
rclcpp::Publisher<dummy_perception_publisher::msg::Object>::SharedPtr dummy_object_info_pub_;
rclcpp::Publisher<autoware_dummy_perception_publisher::msg::Object>::SharedPtr dummy_object_info_pub_;

rviz_common::properties::StringProperty * topic_property_;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace rviz_plugins

using autoware_auto_perception_msgs::msg::ObjectClassification;
using autoware_auto_perception_msgs::msg::Shape;
using dummy_perception_publisher::msg::Object;
using autoware_dummy_perception_publisher::msg::Object;

class InteractiveObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace rviz_plugins

using autoware_auto_perception_msgs::msg::ObjectClassification;
using autoware_auto_perception_msgs::msg::Shape;
using dummy_perception_publisher::msg::Object;
using autoware_dummy_perception_publisher::msg::Object;

class PedestrianInitialPoseTool : public InteractiveObjectTool
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace rviz_plugins

using autoware_auto_perception_msgs::msg::ObjectClassification;
using autoware_auto_perception_msgs::msg::Shape;
using dummy_perception_publisher::msg::Object;
using autoware_dummy_perception_publisher::msg::Object;

class UnknownInitialPoseTool : public InteractiveObjectTool
{
Expand Down

0 comments on commit 848b7f8

Please sign in to comment.