28 template<
typename TChannelMsg,
29 typename TChannelMsgConstPtr,
31 typename TStationMsgConstPtr>
49 msgout.meta.bytecount = 100;
50 msgout.meta.power = 22.0;
55 bool received =
false;
59 if(received)std::cout<<
"Message received"<<std::endl;
60 else std::cout<<
"Message lost"<<std::endl;
64 std::string channel_incoming_topic,
65 std::string channel_outgoing_topic,
66 std::string station_incoming_topic,
67 std::string station_outgoing_topic,
Definition: channel2station.h:33
Station * station_
Definition: channel2station.h:39
void station_receive(TStationMsgConstPtr msg)
Definition: channel2station.h:41
ros::Publisher to_station_publisher_
Definition: channel2station.h:36
ros::Subscriber from_station_subscriber_
Definition: channel2station.h:38
ros::Subscriber from_channel_subscriber_
Definition: channel2station.h:37
void channel_receive(TChannelMsgConstPtr msg)
Definition: channel2station.h:53
Channel * channel_
Definition: channel2station.h:40
ros::Publisher to_channel_publisher_
Definition: channel2station.h:35
ChannelToStation(ros::NodeHandle &n, std::string channel_incoming_topic, std::string channel_outgoing_topic, std::string station_incoming_topic, std::string station_outgoing_topic, Station *station, Channel *channel)
Definition: channel2station.h:63
void notify(const V2XMetaSim &meta, bool &received, double &delay)
Definition: channel.h:108
double getY() const
Definition: station.h:57
double getZ() const
Definition: station.h:58
double getT() const
Definition: station.h:59
double getX() const
Definition: station.h:56