generated from iscumd/isc-ros2-template
-
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
0cb7b93
commit 5256704
Showing
4 changed files
with
14 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
#pragma once | ||
|
||
#include "rclcpp/rclcpp.hpp" | ||
#include "std_msgs/msg/string.hpp" | ||
#include "geometry_msgs/msg/pose_array.hpp" | ||
|
||
class ObjTrackerNode : public rclcpp::Node { | ||
private: | ||
rclcpp::Publisher<std_msgs::msg::String>::SharedPtr pub; | ||
/// Filtered poses | ||
rclcpp::Publisher<geometry_msgs::msg::PoseArray>::SharedPtr pose_pub; | ||
|
||
rclcpp::Subscription<std_msgs::msg::String>::SharedPtr sub; | ||
/// Poses to be filtered | ||
rclcpp::Subscription<geometry_msgs::msg::PoseArray>::SharedPtr pose_sub; | ||
|
||
public: | ||
ObjTrackerNode(const rclcpp::NodeOptions& options); | ||
|
||
/// subscriber callback | ||
void sub_cb(std_msgs::msg::String::SharedPtr msg); | ||
/// Pose input | ||
void pose_cb(geometry_msgs::msg::PoseArray::SharedPtr msg); | ||
}; |
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