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