35 #ifndef ROS_INTROSPECTION_ROSTYPE_H 36 #define ROS_INTROSPECTION_ROSTYPE_H 151 static std::map<absl::string_view, BuiltinType> string_to_builtin_map {
169 const auto it = string_to_builtin_map.find(s);
170 return (it != string_to_builtin_map.cend()) ? it->second :
OTHER;
const absl::string_view & pkgName() const
ex.: geometry_msgs/Pose -> "geometry_msgs"
result_type operator()(RosIntrospection::ROSType const &type) const
BuiltinType toBuiltinType(const absl::string_view &s)
absl::string_view _msg_name
ROSType & operator=(const ROSType &other)
absl::string_view _pkg_name
std::ostream & operator<<(std::ostream &os, const BuiltinType &c)
int typeSize() const
If builtin, size of builtin, -1 means variable or undefined.
bool operator!=(const ROSType &other) const
const std::string & baseName() const
int builtinSize(const BuiltinType c)
bool operator<(const ROSType &other) const
const absl::string_view & msgName() const
ex.: geometry_msgs/Pose -> "Pose"
RosIntrospection::ROSType argument_type
bool operator==(const ROSType &other) const
ROSType(const ROSType &other)
void setPkgName(absl::string_view new_pkg)
BuiltinType typeID() const
If type is builtin, returns the id. BuiltinType::OTHER otherwise.
bool isBuiltin() const
True if the type is ROS builtin.