AutowareV2X/include/autoware_v2x/v2x_node.hpp

52 lines
1.7 KiB
C++
Raw Normal View History

2021-10-27 21:56:21 +00:00
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/string.hpp"
#include "autoware_perception_msgs/msg/dynamic_object_array.hpp"
#include "tf2_msgs/msg/tf_message.hpp"
#include <boost/asio/io_service.hpp>
2021-11-10 08:14:09 +00:00
#include "autoware_v2x/v2x_app.hpp"
2021-10-27 21:56:21 +00:00
#include "autoware_v2x/cpm_application.hpp"
#include "autoware_v2x/time_trigger.hpp"
#include "autoware_v2x/link_layer.hpp"
#include "autoware_v2x/ethernet_device.hpp"
#include "autoware_v2x/positioning.hpp"
#include "autoware_v2x/security.hpp"
#include "autoware_v2x/router_context.hpp"
namespace v2x
{
class V2XNode : public rclcpp::Node
{
public:
explicit V2XNode(const rclcpp::NodeOptions &node_options);
2021-11-10 08:14:09 +00:00
V2XApp *app;
2021-10-27 21:56:21 +00:00
private:
void objectsCallback(
const autoware_perception_msgs::msg::DynamicObjectArray::ConstSharedPtr msg);
void tfCallback(const tf2_msgs::msg::TFMessage::ConstSharedPtr msg);
2021-11-10 08:14:09 +00:00
// friend class CpmApplication;
// friend class Application;
2021-10-27 21:56:21 +00:00
rclcpp::Subscription<autoware_perception_msgs::msg::DynamicObjectArray>::SharedPtr subscription_;
rclcpp::Subscription<tf2_msgs::msg::TFMessage>::SharedPtr subscription_pos_;
2021-11-10 08:14:09 +00:00
// std::unique_ptr<CpmApplication> cp_;
// std::unique_ptr<Application> app_;
// boost::asio::io_service io_service_;
// TimeTrigger trigger_;
// vanetza::Runtime& runtime_;
// const char *device_name_;
// EthernetDevice device_;
// vanetza::MacAddress mac_address_;
// std::unique_ptr<LinkLayer> link_layer_;
// vanetza::geonet::MIB mib_;
// std::unique_ptr<vanetza::PositionProvider> positioning_;
// std::unique_ptr<vanetza::security::SecurityEntity> security_;
// RouterContext context_;
2021-10-27 21:56:21 +00:00
double pos_lat_;
double pos_lon_;
2021-11-10 08:14:09 +00:00
// vanetza::PositionFix reference_position_;
2021-10-27 21:56:21 +00:00
};
}