Functions | Variables
naoqi::helpers::driver Namespace Reference

Functions

std::string & getLanguage (const qi::SessionPtr &session)
 
const robot::NaoqiVersiongetNaoqiVersion (const qi::SessionPtr &session)
 Function that retrieves the NAOqi version of the robot. More...
 
const robot::RobotgetRobot (const qi::SessionPtr &session)
 
const naoqi_bridge_msgs::RobotInfo & getRobotInfo (const qi::SessionPtr &session)
 
static naoqi_bridge_msgs::RobotInfo & getRobotInfoLocal (const qi::SessionPtr &session)
 
bool isDepthStereo (const qi::SessionPtr &session)
 
bool isNaoqiVersionLesser (const robot::NaoqiVersion &naoqi_version, const int &major, const int &minor, const int &patch, const int &build)
 Function that returns true if the provided naoqi_version is (strictly) lesser than the specified one (major.minor.patch.build). More...
 
bool & setLanguage (const qi::SessionPtr &session, naoqi_bridge_msgs::SetStringRequest req)
 

Variables

static pt::ptree empty_ptree
 

Function Documentation

◆ getLanguage()

std::string & naoqi::helpers::driver::getLanguage ( const qi::SessionPtr &  session)

Function that gets language set to a robot

Definition at line 361 of file driver_helpers.cpp.

◆ getNaoqiVersion()

const robot::NaoqiVersion & naoqi::helpers::driver::getNaoqiVersion ( const qi::SessionPtr &  session)

Function that retrieves the NAOqi version of the robot.

Parameters
session
Returns
const robot::NaoqiVersion&

Definition at line 280 of file driver_helpers.cpp.

◆ getRobot()

const robot::Robot & naoqi::helpers::driver::getRobot ( const qi::SessionPtr &  session)

Definition at line 254 of file driver_helpers.cpp.

◆ getRobotInfo()

const naoqi_bridge_msgs::RobotInfo & naoqi::helpers::driver::getRobotInfo ( const qi::SessionPtr &  session)

Definition at line 335 of file driver_helpers.cpp.

◆ getRobotInfoLocal()

static naoqi_bridge_msgs::RobotInfo& naoqi::helpers::driver::getRobotInfoLocal ( const qi::SessionPtr &  session)
static

Function that returns the type of a robot

Definition at line 34 of file driver_helpers.cpp.

◆ isDepthStereo()

bool naoqi::helpers::driver::isDepthStereo ( const qi::SessionPtr &  session)

Function that detects if the robot is using stereo cameras to compute depth

Definition at line 373 of file driver_helpers.cpp.

◆ isNaoqiVersionLesser()

bool naoqi::helpers::driver::isNaoqiVersionLesser ( const robot::NaoqiVersion naoqi_version,
const int &  major,
const int &  minor,
const int &  patch,
const int &  build 
)

Function that returns true if the provided naoqi_version is (strictly) lesser than the specified one (major.minor.patch.build).

Parameters
naoqi_version
major
minor
patch
build
Returns
true
false

Definition at line 408 of file driver_helpers.cpp.

◆ setLanguage()

bool & naoqi::helpers::driver::setLanguage ( const qi::SessionPtr &  session,
naoqi_bridge_msgs::SetStringRequest  req 
)

Function that sets language for a robot

Definition at line 343 of file driver_helpers.cpp.

Variable Documentation

◆ empty_ptree

pt::ptree naoqi::helpers::driver::empty_ptree
static

Definition at line 30 of file driver_helpers.cpp.



naoqi_driver
Author(s): Karsten Knese
autogenerated on Sat Feb 3 2024 03:50:07