本文整理汇总了C++中actionlib::SimpleClientGoalState::getText方法的典型用法代码示例。如果您正苦于以下问题:C++ SimpleClientGoalState::getText方法的具体用法?C++ SimpleClientGoalState::getText怎么用?C++ SimpleClientGoalState::getText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类actionlib::SimpleClientGoalState
的用法示例。
在下文中一共展示了SimpleClientGoalState::getText方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: userCmdDone
void InteractiveObjectDetectionFrame::userCmdDone(const actionlib::SimpleClientGoalState& state,
const UserCommandResultConstPtr& result)
{
boost::mutex::scoped_lock l1( mutex_ );
ROS_INFO("Action finished in state [%s]", state.toString().c_str());
action_requested_ = false;
status_ = "[" + state.toString() + "]";
switch (user_command_goal_.request)
{
case UserCommandGoal::SEGMENT:
seg_status_ = state.getText();
break;
case UserCommandGoal::RECOGNIZE:
rec_status_ = state.getText();
break;
case UserCommandGoal::DETECT:
det_status_ = state.getText();
break;
default:
break;
}
}