driver_helpers.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2015 Aldebaran
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 
19 #ifndef DRIVER_HELPERS_HPP
20 #define DRIVER_HELPERS_HPP
21 
22 #include <naoqi_driver/tools.hpp>
23 
24 #include <naoqi_bridge_msgs/RobotInfo.h>
25 
26 #include <naoqi_bridge_msgs/SetString.h>
27 
28 #include <qi/applicationsession.hpp>
29 
30 namespace naoqi
31 {
32 namespace helpers
33 {
34 namespace driver
35 {
36 
37 const robot::Robot& getRobot( const qi::SessionPtr& session );
38 
39 const robot::NaoqiVersion& getNaoqiVersion( const qi::SessionPtr& session );
40 
41 const naoqi_bridge_msgs::RobotInfo& getRobotInfo( const qi::SessionPtr& session );
42 
43 bool& setLanguage( const qi::SessionPtr& session, naoqi_bridge_msgs::SetStringRequest req );
44 
45 std::string& getLanguage( const qi::SessionPtr& session );
46 
47 bool isDepthStereo(const qi::SessionPtr &session);
48 
50  const robot::NaoqiVersion& naoqi_version,
51  const int& major,
52  const int& minor=0,
53  const int& patch=0,
54  const int& build=0);
55 
56 } // driver
57 } // helpers
58 } // naoqi
59 
60 #endif
const naoqi_bridge_msgs::RobotInfo & getRobotInfo(const qi::SessionPtr &session)
const robot::NaoqiVersion & getNaoqiVersion(const qi::SessionPtr &session)
Function that retrieves the NAOqi version of the robot.
bool isDepthStereo(const qi::SessionPtr &session)
std::string & getLanguage(const qi::SessionPtr &session)
bool & setLanguage(const qi::SessionPtr &session, naoqi_bridge_msgs::SetStringRequest req)
const robot::Robot & getRobot(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 ...


naoqi_driver
Author(s): Karsten Knese
autogenerated on Sat Jul 1 2023 02:53:24