Go to the documentation of this file.
3 #include <SimoxUtility/algorithm/string.h>
15 "The RGB image(s) entity ID. Provider segment name can be set via 'img.ProviderName'.");
17 "Indices of RGB images in provided images");
20 "The depth image(s) entity ID. Provider segment name can be set via 'img.ProviderName'.");
22 "Indices of Depth images in provided images.");
41 if (!
id.hasProviderSegmentName())
43 id.providerSegmentName = defaultProviderSegmentName;
51 std::string prop = properties.
getProperty<std::string>(propertyName);
59 std::transform(indicesStr.begin(), indicesStr.end(), std::back_inserter(
indices), [](
const std::string &
s)
61 long l = std::stol(s);
62 ARMARX_CHECK_NONNEGATIVE(l) <<
"Image indices must be non-negative.";
63 return static_cast<size_t>(l);
std::vector< size_t > rgbIndices
std::vector< size_t > depthIndices
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
std::string str(bool escapeDelimiters=true) const
Get a string representation of this memory ID.
static std::vector< size_t > getIndices(armarx::PropertyUser &properties, const std::string &propertyName)
pcl::PointIndices::Ptr indices(const PCG &g)
Retrieve the indices of the points of the point cloud stored in a point cloud graph that actually bel...
void define(armarx::PropertyDefinitionContainer &defs)
PropertyDefinitionContainer.
Property< PropertyType > getProperty(const std::string &name)
Property creation and retrieval.
void read(armarx::PropertyUser &properties, const std::string &defaultProviderSegmentName)
auto transform(const Container< InputT, Alloc > &in, OutputT(*func)(InputT const &)) -> Container< OutputT, typename std::allocator_traits< Alloc >::template rebind_alloc< OutputT > >
Convenience function (with less typing) to transform a container of type InputT into the same contain...
armarx::armem::MemoryID rgbEntityID
static armarx::armem::MemoryID getEntityID(armarx::PropertyUser &properties, const std::string &propertyName, const std::string &defaultProviderSegmentName)
Abstract PropertyUser class.
armarx::armem::MemoryID depthEntityID
double s(double t, double s0, double v0, double a0, double j)
std::vector< std::string > split(const std::string &source, const std::string &splitBy, bool trimElements=false, bool removeEmptyElements=false)