Base class for skills.
More...
#include <RobotAPI/libraries/skills/core/Skill.h>
Inherits Logging.
Inherited by LambdaSkill, PeriodicSkill, SimpleSkill, SpecializedSkill< AronT >, SpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanPoseParams >, SpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanPoseWithFaceRecognitionParams >, SpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanProfileParams >, SpecializedSkill< armarx::control::skills::params::ZeroTorque >, SpecializedSkill< armarx::skills::Example::SleepAcceptedType >, SpecializedSkill< arondto::BringObjectToLandmarkAcceptedType >, SpecializedSkill< arondto::CloseHandParams >, SpecializedSkill< arondto::ExecuteTrajectoryParams >, SpecializedSkill< arondto::FollowerParams >, SpecializedSkill< arondto::GuideHumanToRoomParams >, SpecializedSkill< arondto::GuidingWithCollAvoidanceParams >, SpecializedSkill< arondto::LookAtArticulatedObjectFrameParams >, SpecializedSkill< arondto::LookAtHumanFaceParams >, SpecializedSkill< arondto::LookAtHumanHandParams >, SpecializedSkill< arondto::LookAtObjectParams >, SpecializedSkill< arondto::LookAtParams >, SpecializedSkill< arondto::LookDirectionParams >, SpecializedSkill< arondto::LookForObjectsParams >, SpecializedSkill< arondto::MoveJointsToNamedConfigurationParams >, SpecializedSkill< arondto::MoveJointsToPositionParams >, SpecializedSkill< arondto::MoveJointsWithVelocityParams >, SpecializedSkill< arondto::NamedConfigurationParams >, SpecializedSkill< arondto::NavigateToChargingStationParams >, SpecializedSkill< arondto::NavigateToLocationParams >, SpecializedSkill< arondto::NavigateToNamedLocationParams >, SpecializedSkill< arondto::NavigateToParams >, SpecializedSkill< arondto::OpenHandParams >, SpecializedSkill< arondto::PointAtParams >, SpecializedSkill< arondto::RelaxHandParams >, SpecializedSkill< arondto::ResetGazeTargetsParams >, SpecializedSkill< arondto::ScanLocationParams >, SpecializedSkill< arondto::ScanLocationsForObjectParams >, SpecializedSkill< arondto::SetCustomGazeTargetParams >, SpecializedSkill< arondto::ShapeHandParams >, SpecializedSkill< grasp_object::arondto::CloseHandAndAttachAcceptedType >, SpecializedSkill< grasp_object::arondto::ExecuteGraspAcceptedType >, SpecializedSkill< grasp_object::arondto::ExecutePutdownAcceptedType >, SpecializedSkill< grasp_object::arondto::GraspObjectAcceptedType >, SpecializedSkill< grasp_object::arondto::MovePlatformAfterGraspAcceptedType >, SpecializedSkill< grasp_object::arondto::MovePlatformAfterPutdownAcceptedType >, SpecializedSkill< grasp_object::arondto::MovePlatformForGraspAcceptedType >, SpecializedSkill< grasp_object::arondto::MovePlatformForPutdownAcceptedType >, SpecializedSkill< grasp_object::arondto::OpenHandAndDetachAcceptedType >, SpecializedSkill< grasp_object::arondto::PutdownObjectAcceptedType >, SpecializedSkill< hand_control::arondto::CloseHandAcceptedType >, SpecializedSkill< hand_control::arondto::OpenHandAcceptedType >, SpecializedSkill< joint_control::arondto::MoveJointsWithVelocityAcceptedType >, SpecializedSkill< platform_control::arondto::MovePlatformToLandmarkAcceptedType >, SpecializedSkill< platform_control::arondto::MovePlatformToPoseAcceptedType >, SpecializedSkill< RetrieveHandParams >, SpecializedSkill< skills::Example::HelloWorldAcceptedType >, SpecializedSkill< skills::Example::RecursiveSkillParams >, and SpecializedSkill< visual_search::arondto::WhatCanYouSeeNowAcceptedType >.
|
std::optional< TerminatedSkillStatusUpdate > | callSubskill (const SkillID &skillId) |
| Call a subskill with the given ID and its default parameters. More...
|
|
std::optional< TerminatedSkillStatusUpdate > | callSubskill (const SkillID &skillId, const aron::data::DictPtr ¶meters) |
| Call a subskill with the given ID and parameters. More...
|
|
template<class ParameterT > |
std::optional< TerminatedSkillStatusUpdate > | callSubskill (const SkillID &skillId, const ParameterT ¶meters) |
| Call a subskill with the given ID and parameters. More...
|
|
std::optional< TerminatedSkillStatusUpdate > | callSubskill (const SkillID &skillId, std::function< void(aron::data::DictPtr ¶meters)> parametersFunction) |
| Call a subskill with parameters based on the default parameters. More...
|
|
template<class ParameterT > |
std::optional< TerminatedSkillStatusUpdate > | callSubskill (const SkillID &skillId, std::function< void(ParameterT ¶meters)> parametersFunction) |
| Call a subskill with parameters based on the default parameters. More...
|
|
std::optional< TerminatedSkillStatusUpdate > | callSubskill (const skills::SkillProxy &proxy) |
| Call a subskill with default parameters and block until the subskill terminates. More...
|
|
std::optional< TerminatedSkillStatusUpdate > | callSubskill (const skills::SkillProxy &proxy, const aron::data::DictPtr ¶meters) |
| Call a subskill with given parameters and block until the subskill terminates. More...
|
|
skills::SkillExecutionID | callSubskillAsync (const SkillID &skillId, std::function< void(aron::data::DictPtr &)> parametersFunction) |
| Similar to callSubskill but non-blocking. More...
|
|
template<class ParameterT > |
std::optional< TerminatedSkillStatusUpdate > | callSubskillAsync (const SkillID &skillId, std::function< void(ParameterT ¶meters)> parametersFunction) |
|
skills::SkillExecutionID | callSubskillAsync (const skills::SkillProxy &proxy) |
| Similar to callSubskill but non-blocking. More...
|
|
skills::SkillExecutionID | callSubskillAsync (const skills::SkillProxy &proxy, const aron::data::DictPtr ¶meters) |
| Similar to callSubskill but non-blocking. More...
|
|
virtual ExitResult | exit () |
| Override this method with the actual implementation. More...
|
|
virtual InitResult | init () |
| Override this method with the actual implementation. More...
|
|
void | installConditionWithCallback (std::function< bool()> &&f, std::function< void()> &&cb) |
| install a condition which is frequently checked from the conditionCheckingThread More...
|
|
virtual MainResult | main () |
| Override this method with the actual implementation. The callback is for status updates to the calling instance. More...
|
|
void | notifyTimeoutReached () |
|
virtual void | onStopRequested () |
|
virtual void | onTimeoutReached () |
| Override these methods if you want to do something special when notification comes. More...
|
|
virtual PrepareResult | prepare () |
| Override this method with the actual implementation. More...
|
|
void | throwIfSkillShouldTerminate (const std::function< void()> &do_before, const std::string &abortedMessage="") |
|
void | throwIfSkillShouldTerminate (const std::string &abortedMessage="") |
|
bool | checkLogLevel (MessageTypeT level) const |
|
const LogSenderPtr & | getLogSender () const |
| Retrieve log sender. More...
|
|
LogSenderPtr | loghelper (const char *file, int line, const char *function) const |
|
Base class for skills.
Definition at line 20 of file Skill.h.
◆ CallbackT
◆ Skill() [1/2]
We completely remove the default constructor! A skill without a desciption cannot exist.
◆ Skill() [2/2]
Constructor of a skill for inheritance. Every skill must have a skill description.
Definition at line 11 of file Skill.cpp.
◆ ~Skill()
Virtual destructor of a skill.
Definition at line 519 of file Skill.cpp.
◆ callSubskill() [1/7]
Call a subskill with the given ID and its default parameters.
- Parameters
-
skillId | The subskill's ID. |
- Returns
- The terminated skill status update.
- Exceptions
-
Definition at line 76 of file Skill.cpp.
◆ callSubskill() [2/7]
Call a subskill with the given ID and parameters.
- Parameters
-
skillId | The subskill's ID. |
parameters | The parameters. |
- Returns
- The terminated skill status update.
- Exceptions
-
Definition at line 82 of file Skill.cpp.
◆ callSubskill() [3/7]
Call a subskill with the given ID and parameters.
- Parameters
-
skillId | The subskill's ID. |
parameters | The parameters. |
- Returns
- The terminated skill status update.
- Exceptions
-
Definition at line 229 of file Skill.h.
◆ callSubskill() [4/7]
Call a subskill with parameters based on the default parameters.
Creates the skill's default parameters, and calls parametersFunction
on them. This allows the caller to modify the parameters before executing the skill.
- Parameters
-
skillId | The subskill's ID. |
parametersFunction | Function which edits the parameters. |
- Returns
- The terminated skill status update.
- Exceptions
-
◆ callSubskill() [5/7]
Call a subskill with parameters based on the default parameters.
Creates the skill's default parameters, converts them to ParameterT
, and calls parametersFunction
on them. This allows the caller to modify the parameters as ParameterT
before executing the skill.
- Parameters
-
skillId | The subskill's ID. |
parametersFunction | Function which edits the parameters. |
- Returns
- The terminated skill status update.
- Exceptions
-
Definition at line 270 of file Skill.h.
◆ callSubskill() [6/7]
Call a subskill with default parameters and block until the subskill terminates.
If you call a subskill this way it will be stopped if the current skill stops.
- Parameters
-
- Returns
- Terminated skill status update.
- Exceptions
-
Definition at line 32 of file Skill.cpp.
◆ callSubskill() [7/7]
Call a subskill with given parameters and block until the subskill terminates.
- Parameters
-
proxy | Skill proxy. |
parameters | Parameters passed to the skill. |
- Returns
- Terminated skill status update.
- Exceptions
-
Definition at line 38 of file Skill.cpp.
◆ callSubskillAsync() [1/4]
Similar to callSubskill but non-blocking.
Definition at line 105 of file Skill.cpp.
◆ callSubskillAsync() [2/4]
◆ callSubskillAsync() [3/4]
Similar to callSubskill but non-blocking.
Definition at line 52 of file Skill.cpp.
◆ callSubskillAsync() [4/4]
Similar to callSubskill but non-blocking.
Definition at line 58 of file Skill.cpp.
◆ exit()
Override this method with the actual implementation.
Reimplemented in SimpleSpecializedSkill< AronT >, SimpleSpecializedSkill< joint_control::arondto::MoveJointsWithVelocityAcceptedType >, SimpleSpecializedSkill< arondto::PointAtParams >, SimpleSpecializedSkill< arondto::LookAtHumanFaceParams >, SimpleSpecializedSkill< skills::Example::HelloWorldAcceptedType >, SimpleSpecializedSkill< arondto::LookAtArticulatedObjectFrameParams >, SimpleSpecializedSkill< arondto::MoveJointsToNamedConfigurationParams >, SimpleSpecializedSkill< visual_search::arondto::WhatCanYouSeeNowAcceptedType >, SimpleSpecializedSkill< armarx::control::skills::params::ZeroTorque >, SimpleSpecializedSkill< grasp_object::arondto::ExecuteGraspAcceptedType >, SimpleSpecializedSkill< arondto::ScanLocationParams >, SimpleSpecializedSkill< arondto::LookAtParams >, SimpleSpecializedSkill< grasp_object::arondto::OpenHandAndDetachAcceptedType >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformForPutdownAcceptedType >, SimpleSpecializedSkill< armarx::skills::Example::SleepAcceptedType >, SimpleSpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanProfileParams >, SimpleSpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanPoseWithFaceRecognitionParams >, SimpleSpecializedSkill< arondto::NavigateToLocationParams >, SimpleSpecializedSkill< grasp_object::arondto::CloseHandAndAttachAcceptedType >, SimpleSpecializedSkill< arondto::BringObjectToLandmarkAcceptedType >, SimpleSpecializedSkill< hand_control::arondto::OpenHandAcceptedType >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformAfterGraspAcceptedType >, SimpleSpecializedSkill< arondto::NavigateToParams >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformAfterPutdownAcceptedType >, SimpleSpecializedSkill< arondto::ResetGazeTargetsParams >, SimpleSpecializedSkill< arondto::ScanLocationsForObjectParams >, SimpleSpecializedSkill< arondto::SetCustomGazeTargetParams >, SimpleSpecializedSkill< arondto::GuidingWithCollAvoidanceParams >, SimpleSpecializedSkill< grasp_object::arondto::PutdownObjectAcceptedType >, SimpleSpecializedSkill< arondto::LookDirectionParams >, SimpleSpecializedSkill< arondto::NavigateToNamedLocationParams >, SimpleSpecializedSkill< platform_control::arondto::MovePlatformToPoseAcceptedType >, SimpleSpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanPoseParams >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformForGraspAcceptedType >, SimpleSpecializedSkill< arondto::GuideHumanToRoomParams >, SimpleSpecializedSkill< RetrieveHandParams >, SimpleSpecializedSkill< arondto::LookForObjectsParams >, SimpleSpecializedSkill< arondto::NavigateToChargingStationParams >, SimpleSpecializedSkill< arondto::MoveJointsWithVelocityParams >, SimpleSpecializedSkill< arondto::RelaxHandParams >, SimpleSpecializedSkill< arondto::LookAtHumanHandParams >, SimpleSpecializedSkill< arondto::MoveJointsToPositionParams >, SimpleSpecializedSkill< skills::Example::RecursiveSkillParams >, SimpleSpecializedSkill< platform_control::arondto::MovePlatformToLandmarkAcceptedType >, SimpleSpecializedSkill< hand_control::arondto::CloseHandAcceptedType >, SimpleSpecializedSkill< grasp_object::arondto::GraspObjectAcceptedType >, SimpleSpecializedSkill< arondto::LookAtObjectParams >, SimpleSpecializedSkill< grasp_object::arondto::ExecutePutdownAcceptedType >, SimpleSpecializedSkill< arondto::FollowerParams >, SimpleSpecializedSkill< arondto::NamedConfigurationParams >, SimpleSpecializedSkill< arondto::ExecuteTrajectoryParams >, and SimpleSkill.
Definition at line 468 of file Skill.cpp.
◆ exitSkill()
Exit method of a skill.
It is guaranteed that exit is always called (unless there is a segfault or similar)
Definition at line 302 of file Skill.cpp.
◆ getParameters()
Get the parameters of a skill that have been set so far.
Definition at line 151 of file Skill.cpp.
◆ getSkillDescription()
Get the description of a skill.
Definition at line 508 of file Skill.cpp.
◆ getSkillId()
Get the id of the skill.
Definition at line 514 of file Skill.cpp.
◆ init()
Override this method with the actual implementation.
Reimplemented in SimpleSpecializedSkill< AronT >, SimpleSpecializedSkill< joint_control::arondto::MoveJointsWithVelocityAcceptedType >, SimpleSpecializedSkill< arondto::PointAtParams >, SimpleSpecializedSkill< arondto::LookAtHumanFaceParams >, SimpleSpecializedSkill< skills::Example::HelloWorldAcceptedType >, SimpleSpecializedSkill< arondto::LookAtArticulatedObjectFrameParams >, SimpleSpecializedSkill< arondto::MoveJointsToNamedConfigurationParams >, SimpleSpecializedSkill< visual_search::arondto::WhatCanYouSeeNowAcceptedType >, SimpleSpecializedSkill< armarx::control::skills::params::ZeroTorque >, SimpleSpecializedSkill< grasp_object::arondto::ExecuteGraspAcceptedType >, SimpleSpecializedSkill< arondto::ScanLocationParams >, SimpleSpecializedSkill< arondto::LookAtParams >, SimpleSpecializedSkill< grasp_object::arondto::OpenHandAndDetachAcceptedType >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformForPutdownAcceptedType >, SimpleSpecializedSkill< armarx::skills::Example::SleepAcceptedType >, SimpleSpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanProfileParams >, SimpleSpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanPoseWithFaceRecognitionParams >, SimpleSpecializedSkill< arondto::NavigateToLocationParams >, SimpleSpecializedSkill< grasp_object::arondto::CloseHandAndAttachAcceptedType >, SimpleSpecializedSkill< arondto::BringObjectToLandmarkAcceptedType >, SimpleSpecializedSkill< hand_control::arondto::OpenHandAcceptedType >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformAfterGraspAcceptedType >, SimpleSpecializedSkill< arondto::NavigateToParams >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformAfterPutdownAcceptedType >, SimpleSpecializedSkill< arondto::ResetGazeTargetsParams >, SimpleSpecializedSkill< arondto::ScanLocationsForObjectParams >, SimpleSpecializedSkill< arondto::SetCustomGazeTargetParams >, SimpleSpecializedSkill< arondto::GuidingWithCollAvoidanceParams >, SimpleSpecializedSkill< grasp_object::arondto::PutdownObjectAcceptedType >, SimpleSpecializedSkill< arondto::LookDirectionParams >, SimpleSpecializedSkill< arondto::NavigateToNamedLocationParams >, SimpleSpecializedSkill< platform_control::arondto::MovePlatformToPoseAcceptedType >, SimpleSpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanPoseParams >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformForGraspAcceptedType >, SimpleSpecializedSkill< arondto::GuideHumanToRoomParams >, SimpleSpecializedSkill< RetrieveHandParams >, SimpleSpecializedSkill< arondto::LookForObjectsParams >, SimpleSpecializedSkill< arondto::NavigateToChargingStationParams >, SimpleSpecializedSkill< arondto::MoveJointsWithVelocityParams >, SimpleSpecializedSkill< arondto::RelaxHandParams >, SimpleSpecializedSkill< arondto::LookAtHumanHandParams >, SimpleSpecializedSkill< arondto::MoveJointsToPositionParams >, SimpleSpecializedSkill< skills::Example::RecursiveSkillParams >, SimpleSpecializedSkill< platform_control::arondto::MovePlatformToLandmarkAcceptedType >, SimpleSpecializedSkill< hand_control::arondto::CloseHandAcceptedType >, SimpleSpecializedSkill< grasp_object::arondto::GraspObjectAcceptedType >, SimpleSpecializedSkill< arondto::LookAtObjectParams >, SimpleSpecializedSkill< grasp_object::arondto::ExecutePutdownAcceptedType >, SimpleSpecializedSkill< arondto::FollowerParams >, SimpleSpecializedSkill< arondto::NamedConfigurationParams >, SimpleSpecializedSkill< arondto::ExecuteTrajectoryParams >, and SimpleSkill.
Definition at line 452 of file Skill.cpp.
◆ initSkill()
Initialization of a skill.
Called directly after construction. If this method does not return SUCCEEDED the skill execution is failed.
Definition at line 274 of file Skill.cpp.
◆ installConditionWithCallback()
void installConditionWithCallback |
( |
std::function< bool()> && |
f, |
|
|
std::function< void()> && |
cb |
|
) |
| |
|
protected |
install a condition which is frequently checked from the conditionCheckingThread
Definition at line 25 of file Skill.cpp.
◆ main()
Override this method with the actual implementation. The callback is for status updates to the calling instance.
Reimplemented in SimpleSpecializedSkill< AronT >, SimpleSpecializedSkill< joint_control::arondto::MoveJointsWithVelocityAcceptedType >, SimpleSpecializedSkill< arondto::PointAtParams >, SimpleSpecializedSkill< arondto::LookAtHumanFaceParams >, SimpleSpecializedSkill< skills::Example::HelloWorldAcceptedType >, SimpleSpecializedSkill< arondto::LookAtArticulatedObjectFrameParams >, SimpleSpecializedSkill< arondto::MoveJointsToNamedConfigurationParams >, SimpleSpecializedSkill< visual_search::arondto::WhatCanYouSeeNowAcceptedType >, SimpleSpecializedSkill< armarx::control::skills::params::ZeroTorque >, SimpleSpecializedSkill< grasp_object::arondto::ExecuteGraspAcceptedType >, SimpleSpecializedSkill< arondto::ScanLocationParams >, SimpleSpecializedSkill< arondto::LookAtParams >, SimpleSpecializedSkill< grasp_object::arondto::OpenHandAndDetachAcceptedType >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformForPutdownAcceptedType >, SimpleSpecializedSkill< armarx::skills::Example::SleepAcceptedType >, SimpleSpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanProfileParams >, SimpleSpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanPoseWithFaceRecognitionParams >, SimpleSpecializedSkill< arondto::NavigateToLocationParams >, SimpleSpecializedSkill< grasp_object::arondto::CloseHandAndAttachAcceptedType >, SimpleSpecializedSkill< arondto::BringObjectToLandmarkAcceptedType >, SimpleSpecializedSkill< hand_control::arondto::OpenHandAcceptedType >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformAfterGraspAcceptedType >, SimpleSpecializedSkill< arondto::NavigateToParams >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformAfterPutdownAcceptedType >, SimpleSpecializedSkill< arondto::ResetGazeTargetsParams >, SimpleSpecializedSkill< arondto::ScanLocationsForObjectParams >, SimpleSpecializedSkill< arondto::SetCustomGazeTargetParams >, SimpleSpecializedSkill< arondto::GuidingWithCollAvoidanceParams >, SimpleSpecializedSkill< grasp_object::arondto::PutdownObjectAcceptedType >, SimpleSpecializedSkill< arondto::LookDirectionParams >, SimpleSpecializedSkill< arondto::NavigateToNamedLocationParams >, SimpleSpecializedSkill< platform_control::arondto::MovePlatformToPoseAcceptedType >, SimpleSpecializedSkill< ::VisionX::person_simulator::skills::arondto::CreateHumanPoseParams >, SimpleSpecializedSkill< grasp_object::arondto::MovePlatformForGraspAcceptedType >, SimpleSpecializedSkill< arondto::GuideHumanToRoomParams >, SimpleSpecializedSkill< RetrieveHandParams >, SimpleSpecializedSkill< arondto::LookForObjectsParams >, SimpleSpecializedSkill< arondto::NavigateToChargingStationParams >, SimpleSpecializedSkill< arondto::MoveJointsWithVelocityParams >, SimpleSpecializedSkill< arondto::RelaxHandParams >, SimpleSpecializedSkill< arondto::LookAtHumanHandParams >, SimpleSpecializedSkill< arondto::MoveJointsToPositionParams >, SimpleSpecializedSkill< skills::Example::RecursiveSkillParams >, SimpleSpecializedSkill< platform_control::arondto::MovePlatformToLandmarkAcceptedType >, SimpleSpecializedSkill< hand_control::arondto::CloseHandAcceptedType >, SimpleSpecializedSkill< grasp_object::arondto::GraspObjectAcceptedType >, SimpleSpecializedSkill< arondto::LookAtObjectParams >, SimpleSpecializedSkill< grasp_object::arondto::ExecutePutdownAcceptedType >, SimpleSpecializedSkill< arondto::FollowerParams >, SimpleSpecializedSkill< arondto::NamedConfigurationParams >, SimpleSpecializedSkill< arondto::ExecuteTrajectoryParams >, PeriodicSpecializedSkill< AronT >, PeriodicSkill, and SimpleSkill.
Definition at line 475 of file Skill.cpp.
◆ mainOfSkill()
Main method of a skill.
Definition at line 292 of file Skill.cpp.
◆ MakeAbortedResult()
◆ MakeFailedResult()
◆ MakeSucceededResult()
◆ notifySkillToStop()
void notifySkillToStop |
( |
| ) |
|
Notify the skill from extern to stop.
Definition at line 373 of file Skill.cpp.
◆ notifyTimeoutReached()
void notifyTimeoutReached |
( |
| ) |
|
|
protected |
◆ onStopRequested()
◆ onTimeoutReached()
void onTimeoutReached |
( |
| ) |
|
|
protectedvirtual |
Override these methods if you want to do something special when notification comes.
Reimplemented in PointAt.
Definition at line 441 of file Skill.cpp.
◆ prepare()
Override this method with the actual implementation.
Definition at line 460 of file Skill.cpp.
◆ prepareSkill()
Prepare a skill once.
This method is called in a loop as long as it returns RUNNING If the loop does not terminate with SUCCEDED the skill execution is failed.
Definition at line 283 of file Skill.cpp.
◆ setCallback()
void setCallback |
( |
const CallbackT & |
callback | ) |
|
◆ setExecutorName()
void setExecutorName |
( |
const std::string & |
executorName | ) |
|
◆ setManager()
void setManager |
( |
const manager::dti::SkillManagerInterfacePrx & |
manager | ) |
|
◆ setParameters()
Hard set the parameters, ignoring everything that has been set or merged before.
Definition at line 138 of file Skill.cpp.
◆ setProviderId()
Set the provider id of the description of the skill.
This method is called when creating a skill in a skill provider
Definition at line 484 of file Skill.cpp.
◆ shouldSkillTerminate()
bool shouldSkillTerminate |
( |
| ) |
const |
Returns whether the skill should terminate as soon as possible.
Definition at line 402 of file Skill.cpp.
◆ throwIfSkillShouldTerminate() [1/2]
void throwIfSkillShouldTerminate |
( |
const std::function< void()> & |
do_before, |
|
|
const std::string & |
abortedMessage = "" |
|
) |
| |
|
protected |
◆ throwIfSkillShouldTerminate() [2/2]
void throwIfSkillShouldTerminate |
( |
const std::string & |
abortedMessage = "" | ) |
|
|
protected |
◆ updateParameters()
Merge parameters to the local parameters of the skill.
Definition at line 122 of file Skill.cpp.
◆ callback
◆ constructing
std::atomic_bool constructing = true |
|
protected |
◆ description
◆ executorName
std::string executorName = "" |
|
protected |
◆ exited
◆ exiting
std::atomic_bool exiting = false |
|
protected |
◆ finished
std::atomic_bool finished = false |
|
protected |
◆ initializing
std::atomic_bool initializing = false |
|
protected |
◆ manager
manager::dti::SkillManagerInterfacePrx manager = nullptr |
|
protected |
◆ parameters
◆ parametersMutex
std::mutex parametersMutex |
|
mutableprotected |
◆ preparing
std::atomic_bool preparing = false |
|
protected |
◆ running
std::atomic_bool running = false |
|
protected |
◆ started
◆ stopped
std::atomic_bool stopped = false |
|
protected |
◆ timeoutReached
std::atomic_bool timeoutReached = false |
|
protected |
The documentation for this class was generated from the following files: