-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9793312
commit f5efcf5
Showing
27 changed files
with
128 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>panel_detector</name> | ||
<name>detector2d</name> | ||
<version>0.0.0</version> | ||
<description>Panel detection pkg for CoRE-1 2024</description> | ||
<description>Detector2d pkg for CoRE-1 2024</description> | ||
<maintainer email="[email protected]">Ar-Ray-code</maintainer> | ||
<license>Apache-2.0</license> | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
panel_detector_base/CMakeLists.txt → detector2d_base/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...nel_detector_base/panel_detector_base.hpp → ...clude/detector2d_base/detector2d_base.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
panel_detector_base/package.xml → detector2d_base/package.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>panel_detector_base</name> | ||
<name>detector2d_base</name> | ||
<version>0.0.0</version> | ||
<description>Panel detector plugin base</description> | ||
<description>Detector2d plugin base</description> | ||
<maintainer email="[email protected]">Ar-Ray-code</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
||
<buildtool_depend>ament_cmake_auto</buildtool_depend> | ||
|
||
<depend>libopencv-dev</depend> | ||
<depend>panel_detector_param</depend> | ||
<depend>detector2d_param</depend> | ||
<depend>rclcpp_lifecycle</depend> | ||
<depend>vision_msgs</depend> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
detector2d_node/include/detector2d_node/detector2d_node.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include <cv_bridge/cv_bridge.h> | ||
#include <detector2d_base/detector2d_base.hpp> | ||
#include <detector2d_param/detector2d_param.hpp> | ||
#include <pluginlib/class_loader.hpp> | ||
#include <rclcpp/rclcpp.hpp> | ||
#include <sensor_msgs/msg/image.hpp> | ||
#include <vision_msgs/msg/detection2_d_array.hpp> | ||
|
||
namespace detector2d_node | ||
{ | ||
class Detector2dNode : public rclcpp::Node | ||
{ | ||
public: | ||
Detector2dNode(const rclcpp::NodeOptions &); | ||
void image_callback(const sensor_msgs::msg::Image::SharedPtr msg); | ||
|
||
private: | ||
rclcpp::Subscription<sensor_msgs::msg::Image>::SharedPtr image_sub_; | ||
rclcpp::Publisher<vision_msgs::msg::Detection2DArray>::SharedPtr pose_pub_; | ||
pluginlib::ClassLoader<detector2d_base::Detector> detection_loader_; | ||
std::shared_ptr<detector2d_base::Detector> detector_; | ||
|
||
std::shared_ptr<detector2d_parameters::ParamListener> param_listener_; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>panel_detector_node</name> | ||
<name>detector2d_node</name> | ||
<version>0.0.0</version> | ||
<description>Panel detector node for CoRE-1</description> | ||
<description>Detector2d node for CoRE-1</description> | ||
<maintainer email="[email protected]">Ar-Ray-code</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
||
|
@@ -12,7 +12,7 @@ | |
<depend>cv_bridge</depend> | ||
<depend>libopencv-dev</depend> | ||
<depend>pluginlib</depend> | ||
<depend>panel_detector_plugins</depend> | ||
<depend>detector2d_plugins</depend> | ||
<depend>rclcpp</depend> | ||
<depend>rclcpp_components</depend> | ||
<depend>sensor_msgs</depend> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
panel_detector_param/package.xml → detector2d_param/package.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>panel_detector_param</name> | ||
<name>detector2d_param</name> | ||
<version>0.0.0</version> | ||
<description>Panel detector parameter package</description> | ||
<description>Detector2d parameter package</description> | ||
<maintainer email="[email protected]">Ar-Ray-code</maintainer> | ||
<license>Apache-2.0</license> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
detector2d_parameters: | ||
load_target_plugin: | ||
type: string | ||
description: "load target plugin" | ||
default_value: "detector2d_plugins::PublishCenter" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<library path="detector2d_plugins"> | ||
<class type="detector2d_plugins::PublishCenter" base_class_type="detector2d_base::Detector"> | ||
<description>publish image center example</description> | ||
</class> | ||
</library> |
16 changes: 16 additions & 0 deletions
16
detector2d_plugins/include/detector2d_plugins/publish_center_plugin.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include <detector2d_base/detector2d_base.hpp> | ||
#include <detector2d_param/detector2d_param.hpp> | ||
#include <vision_msgs/msg/detection2_d_array.hpp> | ||
|
||
namespace detector2d_plugins | ||
{ | ||
typedef vision_msgs::msg::Detection2DArray Detection2DArray; | ||
class PublishCenter : public detector2d_base::Detector | ||
{ | ||
public: | ||
void init(const detector2d_parameters::ParamListener &) override; | ||
Detection2DArray detect(const cv::Mat &) override; | ||
}; | ||
} |
8 changes: 4 additions & 4 deletions
8
panel_detector_plugins/package.xml → detector2d_plugins/package.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>panel_detector_plugins</name> | ||
<name>detector2d_plugins</name> | ||
<version>0.0.0</version> | ||
<description>Panel detector plugins for CoRE-1</description> | ||
<description>Detector2d plugins for CoRE-1</description> | ||
<maintainer email="[email protected]">Ar-Ray-code</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
||
<buildtool_depend>ament_cmake_auto</buildtool_depend> | ||
|
||
<depend>libopencv-dev</depend> | ||
<depend>panel_detector_base</depend> | ||
<depend>panel_detector_param</depend> | ||
<depend>detector2d_base</depend> | ||
<depend>detector2d_param</depend> | ||
<depend>pluginlib</depend> | ||
<depend>rclcpp_lifecycle</depend> | ||
<depend>vision_msgs</depend> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.