예제 #1
0
const robot::Robot& getRobot( const qi::SessionPtr& session )
{
  static robot::Robot robot = robot::UNIDENTIFIED;

  if ( getRobotInfo(session).type == naoqi_bridge_msgs::RobotInfo::NAO )
  {
    robot = robot::NAO;
  }
  if ( getRobotInfo(session).type == naoqi_bridge_msgs::RobotInfo::PEPPER )
  {
    robot = robot::PEPPER;
  }
  if ( getRobotInfo(session).type == naoqi_bridge_msgs::RobotInfo::ROMEO )
  {
    robot = robot::ROMEO;
  }

  return robot;
}
예제 #2
0
/*! @brief Returns the RoboInfo structure for this robot. If this robot is configured incorrectly NULL will be returned */
const RobotInfo* GameInformation::getMyRobotInfo() const
{
    return getRobotInfo(m_team_number, m_player_number);
}