20 #ifndef __ObjectKarto_Object_h__ 21 #define __ObjectKarto_Object_h__ 41 #define KARTO_TYPECHECKCAST(__Name__) \ 42 inline kt_bool Is##__Name__(Object* pObject) \ 44 return dynamic_cast<__Name__ *>(pObject) != NULL;\ 95 return m_pParameterSet->GetParameter(rParameterName);
106 return dynamic_cast<Parameter<T>*
>(m_pParameterSet->GetParameter(rParameterName));
118 if (pAbstractParameters != NULL)
125 errorMessage.
Append(
"Parameter does not exist: ");
126 errorMessage.
Append(rParameterName);
128 errorMessage.
Append(
"Valid parameters are: ");
130 const ParameterList& rParameters = m_pParameterSet->GetParameters();
133 errorMessage.
Append(
"\t" + (*iter)->GetName());
146 return m_pParameterSet;
155 return m_pParameterSet->GetParameters();
363 #endif // __ObjectKarto_Object_h__ ParameterSetPtr m_pParameterSet
void Append(const String &rString)
const kt_objecttype ObjectType_LocalizedPointScan
const kt_objecttype ObjectType_LaserRangeFinder
Parameter< T > * GetParameter(const String &rParameterName) const
const kt_objecttype ObjectType_ModuleParameters
virtual void SetValueFromString(const karto::String &rStringValue)=0
const kt_objecttype ObjectType_LocalizedLaserScan
const kt_objecttype ObjectType_Image
const kt_objecttype ObjectType_Int64sMessage
const Identifier & GetIdentifier() const
SmartPointer< Object > ObjectPtr
void SetParameters(const karto::String &rParameterName, const T &rValue)
const kt_objecttype ObjectType_Object
const kt_objecttype ObjectType_Sensor
const kt_objecttype ObjectType_Module
const kt_objecttype ObjectType_ScansPoseUpdateMessage
const kt_objecttype ObjectType_CustomItem
const kt_objecttype ObjectType_TiledOccupancyGrid
const kt_objecttype ObjectType_LocalizedObject
const kt_objecttype ObjectType_DefaultCustomItem
const kt_objecttype ObjectType_Rfid
const kt_objecttype ObjectType_Header
const kt_objecttype ObjectType_Misc
const kt_objecttype ObjectType_DrivePose
const kt_objecttype ObjectType_LocalizedRangeScan
List< ObjectPtr > ObjectList
static String ToString(const char *value)
const kt_objecttype ObjectType_StringMessage
const kt_objecttype ObjectType_DatasetInfo
ParameterList GetParameters()
const kt_objecttype ObjectType_Message
const kt_objecttype ObjectType_DatasetObjectMessage
KARTO_TYPE(Grid< kt_int8u >)
const kt_objecttype ObjectType_CameraImage
const kt_objecttype ObjectType_SensorData
const kt_objecttype ObjectType_None
const kt_objecttype ObjectType_Grid
const kt_objecttype ObjectType_Drive
const kt_objecttype ObjectType_Camera
const kt_objecttype ObjectType_Int32sMessage
ParameterSet * GetParameterSet()
const kt_objecttype ObjectType_OccupancyGridTile
AbstractParameter * GetParameter(const String &rParameterName) const
const kt_objecttype ObjectType_DoubleMessage
#define karto_const_forEach(listtype, list)
const kt_objecttype ObjectType_OccupancyGrid
const kt_objecttype ObjectType_LaserRangeScan