00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef _POSEWITHCOVARIANCEDCPS_H_
00012 #define _POSEWITHCOVARIANCEDCPS_H_
00013
00014 #include "sacpp_mapping.h"
00015 #include "sacpp_DDS_DCPS.h"
00016 #include "Quaternion.h"
00017 #include "dds_dcps_builtintopics.h"
00018 #include "Pose.h"
00019 #include "PoseWithCovariance.h"
00020 #include "dds_builtinTopics.h"
00021 #include "Point.h"
00022 #include "Time.h"
00023 #include "dds_dcps_interfaces.h"
00024 struct Time;
00025 struct Point;
00026 struct Quaternion;
00027 struct Pose;
00028 struct PoseWithCovariance;
00029
00030 class PoseWithCovarianceTypeSupportInterface;
00031
00032 typedef PoseWithCovarianceTypeSupportInterface * PoseWithCovarianceTypeSupportInterface_ptr;
00033 typedef DDS_DCPSInterface_var < PoseWithCovarianceTypeSupportInterface> PoseWithCovarianceTypeSupportInterface_var;
00034 typedef DDS_DCPSInterface_out < PoseWithCovarianceTypeSupportInterface> PoseWithCovarianceTypeSupportInterface_out;
00035
00036
00037 class PoseWithCovarianceDataWriter;
00038
00039 typedef PoseWithCovarianceDataWriter * PoseWithCovarianceDataWriter_ptr;
00040 typedef DDS_DCPSInterface_var < PoseWithCovarianceDataWriter> PoseWithCovarianceDataWriter_var;
00041 typedef DDS_DCPSInterface_out < PoseWithCovarianceDataWriter> PoseWithCovarianceDataWriter_out;
00042
00043
00044 class PoseWithCovarianceDataReader;
00045
00046 typedef PoseWithCovarianceDataReader * PoseWithCovarianceDataReader_ptr;
00047 typedef DDS_DCPSInterface_var < PoseWithCovarianceDataReader> PoseWithCovarianceDataReader_var;
00048 typedef DDS_DCPSInterface_out < PoseWithCovarianceDataReader> PoseWithCovarianceDataReader_out;
00049
00050
00051 class PoseWithCovarianceDataReaderView;
00052
00053 typedef PoseWithCovarianceDataReaderView * PoseWithCovarianceDataReaderView_ptr;
00054 typedef DDS_DCPSInterface_var < PoseWithCovarianceDataReaderView> PoseWithCovarianceDataReaderView_var;
00055 typedef DDS_DCPSInterface_out < PoseWithCovarianceDataReaderView> PoseWithCovarianceDataReaderView_out;
00056
00057
00058 struct PoseWithCovarianceSeq_uniq_ {};
00059 typedef DDS_DCPSUVLSeq < PoseWithCovariance, struct PoseWithCovarianceSeq_uniq_> PoseWithCovarianceSeq;
00060 typedef DDS_DCPSSequence_var < PoseWithCovarianceSeq> PoseWithCovarianceSeq_var;
00061 typedef DDS_DCPSSequence_out < PoseWithCovarianceSeq> PoseWithCovarianceSeq_out;
00062 class PoseWithCovarianceTypeSupportInterface
00063 :
00064 virtual public DDS::TypeSupport
00065 {
00066 public:
00067 typedef PoseWithCovarianceTypeSupportInterface_ptr _ptr_type;
00068 typedef PoseWithCovarianceTypeSupportInterface_var _var_type;
00069
00070 static PoseWithCovarianceTypeSupportInterface_ptr _duplicate (PoseWithCovarianceTypeSupportInterface_ptr obj);
00071 DDS::Boolean _local_is_a (const char * id);
00072
00073 static PoseWithCovarianceTypeSupportInterface_ptr _narrow (DDS::Object_ptr obj);
00074 static PoseWithCovarianceTypeSupportInterface_ptr _unchecked_narrow (DDS::Object_ptr obj);
00075 static PoseWithCovarianceTypeSupportInterface_ptr _nil () { return 0; }
00076 static const char * _local_id;
00077 PoseWithCovarianceTypeSupportInterface_ptr _this () { return this; }
00078
00079
00080 protected:
00081 PoseWithCovarianceTypeSupportInterface () {};
00082 ~PoseWithCovarianceTypeSupportInterface () {};
00083 private:
00084 PoseWithCovarianceTypeSupportInterface (const PoseWithCovarianceTypeSupportInterface &);
00085 PoseWithCovarianceTypeSupportInterface & operator = (const PoseWithCovarianceTypeSupportInterface &);
00086 };
00087
00088 class PoseWithCovarianceDataWriter
00089 :
00090 virtual public DDS::DataWriter
00091 {
00092 public:
00093 typedef PoseWithCovarianceDataWriter_ptr _ptr_type;
00094 typedef PoseWithCovarianceDataWriter_var _var_type;
00095
00096 static PoseWithCovarianceDataWriter_ptr _duplicate (PoseWithCovarianceDataWriter_ptr obj);
00097 DDS::Boolean _local_is_a (const char * id);
00098
00099 static PoseWithCovarianceDataWriter_ptr _narrow (DDS::Object_ptr obj);
00100 static PoseWithCovarianceDataWriter_ptr _unchecked_narrow (DDS::Object_ptr obj);
00101 static PoseWithCovarianceDataWriter_ptr _nil () { return 0; }
00102 static const char * _local_id;
00103 PoseWithCovarianceDataWriter_ptr _this () { return this; }
00104
00105 virtual DDS::InstanceHandle_t register_instance (const PoseWithCovariance& instance_data) = 0;
00106 virtual DDS::InstanceHandle_t register_instance_w_timestamp (const PoseWithCovariance& instance_data, const DDS::Time_t& source_timestamp) = 0;
00107 virtual DDS::ReturnCode_t unregister_instance (const PoseWithCovariance& instance_data, DDS::InstanceHandle_t handle) = 0;
00108 virtual DDS::ReturnCode_t unregister_instance_w_timestamp (const PoseWithCovariance& instance_data, DDS::InstanceHandle_t handle, const DDS::Time_t& source_timestamp) = 0;
00109 virtual DDS::ReturnCode_t write (const PoseWithCovariance& instance_data, DDS::InstanceHandle_t handle) = 0;
00110 virtual DDS::ReturnCode_t write_w_timestamp (const PoseWithCovariance& instance_data, DDS::InstanceHandle_t handle, const DDS::Time_t& source_timestamp) = 0;
00111 virtual DDS::ReturnCode_t dispose (const PoseWithCovariance& instance_data, DDS::InstanceHandle_t handle) = 0;
00112 virtual DDS::ReturnCode_t dispose_w_timestamp (const PoseWithCovariance& instance_data, DDS::InstanceHandle_t handle, const DDS::Time_t& source_timestamp) = 0;
00113 virtual DDS::ReturnCode_t writedispose (const PoseWithCovariance& instance_data, DDS::InstanceHandle_t handle) = 0;
00114 virtual DDS::ReturnCode_t writedispose_w_timestamp (const PoseWithCovariance& instance_data, DDS::InstanceHandle_t handle, const DDS::Time_t& source_timestamp) = 0;
00115 virtual DDS::ReturnCode_t get_key_value (PoseWithCovariance& key_holder, DDS::InstanceHandle_t handle) = 0;
00116 virtual DDS::InstanceHandle_t lookup_instance (const PoseWithCovariance& instance_data) = 0;
00117
00118 protected:
00119 PoseWithCovarianceDataWriter () {};
00120 ~PoseWithCovarianceDataWriter () {};
00121 private:
00122 PoseWithCovarianceDataWriter (const PoseWithCovarianceDataWriter &);
00123 PoseWithCovarianceDataWriter & operator = (const PoseWithCovarianceDataWriter &);
00124 };
00125
00126 class PoseWithCovarianceDataReader
00127 :
00128 virtual public DDS::DataReader
00129 {
00130 public:
00131 typedef PoseWithCovarianceDataReader_ptr _ptr_type;
00132 typedef PoseWithCovarianceDataReader_var _var_type;
00133
00134 static PoseWithCovarianceDataReader_ptr _duplicate (PoseWithCovarianceDataReader_ptr obj);
00135 DDS::Boolean _local_is_a (const char * id);
00136
00137 static PoseWithCovarianceDataReader_ptr _narrow (DDS::Object_ptr obj);
00138 static PoseWithCovarianceDataReader_ptr _unchecked_narrow (DDS::Object_ptr obj);
00139 static PoseWithCovarianceDataReader_ptr _nil () { return 0; }
00140 static const char * _local_id;
00141 PoseWithCovarianceDataReader_ptr _this () { return this; }
00142
00143 virtual DDS::ReturnCode_t read (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00144 virtual DDS::ReturnCode_t take (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00145 virtual DDS::ReturnCode_t read_w_condition (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::ReadCondition_ptr a_condition) = 0;
00146 virtual DDS::ReturnCode_t take_w_condition (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::ReadCondition_ptr a_condition) = 0;
00147 virtual DDS::ReturnCode_t read_next_sample (PoseWithCovariance& received_data, DDS::SampleInfo& sample_info) = 0;
00148 virtual DDS::ReturnCode_t take_next_sample (PoseWithCovariance& received_data, DDS::SampleInfo& sample_info) = 0;
00149 virtual DDS::ReturnCode_t read_instance (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00150 virtual DDS::ReturnCode_t take_instance (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00151 virtual DDS::ReturnCode_t read_next_instance (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00152 virtual DDS::ReturnCode_t take_next_instance (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00153 virtual DDS::ReturnCode_t read_next_instance_w_condition (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::ReadCondition_ptr a_condition) = 0;
00154 virtual DDS::ReturnCode_t take_next_instance_w_condition (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::ReadCondition_ptr a_condition) = 0;
00155 virtual DDS::ReturnCode_t return_loan (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq) = 0;
00156 virtual DDS::ReturnCode_t get_key_value (PoseWithCovariance& key_holder, DDS::InstanceHandle_t handle) = 0;
00157 virtual DDS::InstanceHandle_t lookup_instance (const PoseWithCovariance& instance) = 0;
00158
00159 protected:
00160 PoseWithCovarianceDataReader () {};
00161 ~PoseWithCovarianceDataReader () {};
00162 private:
00163 PoseWithCovarianceDataReader (const PoseWithCovarianceDataReader &);
00164 PoseWithCovarianceDataReader & operator = (const PoseWithCovarianceDataReader &);
00165 };
00166
00167 class PoseWithCovarianceDataReaderView
00168 :
00169 virtual public DDS::DataReaderView
00170 {
00171 public:
00172 typedef PoseWithCovarianceDataReaderView_ptr _ptr_type;
00173 typedef PoseWithCovarianceDataReaderView_var _var_type;
00174
00175 static PoseWithCovarianceDataReaderView_ptr _duplicate (PoseWithCovarianceDataReaderView_ptr obj);
00176 DDS::Boolean _local_is_a (const char * id);
00177
00178 static PoseWithCovarianceDataReaderView_ptr _narrow (DDS::Object_ptr obj);
00179 static PoseWithCovarianceDataReaderView_ptr _unchecked_narrow (DDS::Object_ptr obj);
00180 static PoseWithCovarianceDataReaderView_ptr _nil () { return 0; }
00181 static const char * _local_id;
00182 PoseWithCovarianceDataReaderView_ptr _this () { return this; }
00183
00184 virtual DDS::ReturnCode_t read (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00185 virtual DDS::ReturnCode_t take (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00186 virtual DDS::ReturnCode_t read_w_condition (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::ReadCondition_ptr a_condition) = 0;
00187 virtual DDS::ReturnCode_t take_w_condition (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::ReadCondition_ptr a_condition) = 0;
00188 virtual DDS::ReturnCode_t read_next_sample (PoseWithCovariance& received_data, DDS::SampleInfo& sample_info) = 0;
00189 virtual DDS::ReturnCode_t take_next_sample (PoseWithCovariance& received_data, DDS::SampleInfo& sample_info) = 0;
00190 virtual DDS::ReturnCode_t read_instance (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00191 virtual DDS::ReturnCode_t take_instance (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00192 virtual DDS::ReturnCode_t read_next_instance (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00193 virtual DDS::ReturnCode_t take_next_instance (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::SampleStateMask sample_states, DDS::ViewStateMask view_states, DDS::InstanceStateMask instance_states) = 0;
00194 virtual DDS::ReturnCode_t read_next_instance_w_condition (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::ReadCondition_ptr a_condition) = 0;
00195 virtual DDS::ReturnCode_t take_next_instance_w_condition (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq, DDS::Long max_samples, DDS::InstanceHandle_t a_handle, DDS::ReadCondition_ptr a_condition) = 0;
00196 virtual DDS::ReturnCode_t return_loan (PoseWithCovarianceSeq& received_data, DDS::SampleInfoSeq& info_seq) = 0;
00197 virtual DDS::ReturnCode_t get_key_value (PoseWithCovariance& key_holder, DDS::InstanceHandle_t handle) = 0;
00198 virtual DDS::InstanceHandle_t lookup_instance (const PoseWithCovariance& instance) = 0;
00199
00200 protected:
00201 PoseWithCovarianceDataReaderView () {};
00202 ~PoseWithCovarianceDataReaderView () {};
00203 private:
00204 PoseWithCovarianceDataReaderView (const PoseWithCovarianceDataReaderView &);
00205 PoseWithCovarianceDataReaderView & operator = (const PoseWithCovarianceDataReaderView &);
00206 };
00207
00208 template <>
00209 DDS::BuiltinTopicKey_t_slice* DDS_DCPS_ArrayHelper < DDS::BuiltinTopicKey_t, DDS::BuiltinTopicKey_t_slice, DDS::BuiltinTopicKey_t_uniq_>::alloc ();
00210 template <>
00211 void DDS_DCPS_ArrayHelper < DDS::BuiltinTopicKey_t, DDS::BuiltinTopicKey_t_slice, DDS::BuiltinTopicKey_t_uniq_>::copy (DDS::BuiltinTopicKey_t_slice *to, const DDS::BuiltinTopicKey_t_slice* from);
00212 template <>
00213 void DDS_DCPS_ArrayHelper < DDS::BuiltinTopicKey_t, DDS::BuiltinTopicKey_t_slice, DDS::BuiltinTopicKey_t_uniq_>::free (DDS::BuiltinTopicKey_t_slice *ptr);
00214
00215
00216
00217
00218 #endif