Go to the documentation of this file.
3 #include <SimoxUtility/algorithm/string.h>
17 "The RGB image(s) entity ID. Provider segment name can be set via 'img.ProviderName'.");
19 simox::alg::join(simox::alg::multi_to_string(
rgbIndices)),
20 "Indices of RGB images in provided images");
24 "The depth image(s) entity ID. Provider segment name can be "
25 "set via 'img.ProviderName'.");
27 simox::alg::join(simox::alg::multi_to_string(
depthIndices)),
28 "Indices of Depth images in provided images.");
33 const std::string& defaultProviderSegmentName)
45 const std::string& propertyName,
46 const std::string& defaultProviderSegmentName)
49 if (!
id.hasProviderSegmentName())
51 id.providerSegmentName = defaultProviderSegmentName;
59 std::string prop = properties.
getProperty<std::string>(propertyName);
70 [](
const std::string&
s)
72 long l = std::stol(s);
73 ARMARX_CHECK_NONNEGATIVE(l) <<
"Image indices must be non-negative.";
74 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.
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...
Property< PropertyType > getProperty(const std::string &name)
Property creation and retrieval.
void read(armarx::PropertyUser &properties, const std::string &defaultProviderSegmentName)
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)