Skip to content
Snippets Groups Projects
Commit 3ef8c51c authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Move property definitions to .cpp

parent 5db226cd
No related branches found
No related tags found
1 merge request!51Split joint angle and pose history in robot state component
......@@ -56,6 +56,21 @@ namespace armarx
}
RobotStatePropertyDefinitions::RobotStatePropertyDefinitions(std::string prefix) :
ComponentPropertyDefinitions(prefix)
{
defineRequiredProperty<std::string>("RobotNodeSetName", "Set of nodes that is controlled by the KinematicUnit");
defineRequiredProperty<std::string>("RobotFileName", "Filename of VirtualRobot robot model (e.g. robot_model.xml)");
defineRequiredProperty<std::string>("AgentName", "Name of the agent for which the sensor values are provided");
defineOptionalProperty<std::string>("RobotStateReportingTopic", "RobotStateUpdates", "Name of the topic on which updates of the robot state are reported.");
defineOptionalProperty<int>("HistoryLength", 10000, "Number of entries in the robot state history").setMin(0);
defineOptionalProperty<float>("RobotModelScaling", 1.0f, "Scaling of the robot model");
defineOptionalProperty<std::string>("TopicPrefix", "", "Prefix for the sensor value topic name.");
}
void RobotStateComponent::onInitComponent()
{
robotStateTopicName = getProperty<std::string>("RobotStateReportingTopic").getValue();
......
......@@ -44,22 +44,11 @@ namespace armarx
* \class RobotStatePropertyDefinition
* \brief
*/
class RobotStatePropertyDefinitions:
class RobotStatePropertyDefinitions :
public ComponentPropertyDefinitions
{
public:
RobotStatePropertyDefinitions(std::string prefix):
ComponentPropertyDefinitions(prefix)
{
defineRequiredProperty<std::string>("RobotNodeSetName", "Set of nodes that is controlled by the KinematicUnit");
defineRequiredProperty<std::string>("RobotFileName", "Filename of VirtualRobot robot model (e.g. robot_model.xml)");
defineRequiredProperty<std::string>("AgentName", "Name of the agent for which the sensor values are provided");
defineOptionalProperty<std::string>("RobotStateReportingTopic", "RobotStateUpdates", "Name of the topic on which updates of the robot state are reported.");
defineOptionalProperty<int>("HistoryLength", 10000, "Number of entries in the robot state history");
defineOptionalProperty<float>("RobotModelScaling", 1.0f, "Scaling of the robot model");
defineOptionalProperty<std::string>("TopicPrefix", "", "Prefix for the sensor value topic name.");
}
RobotStatePropertyDefinitions(std::string prefix);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment