Public Member Functions | Private Attributes | List of all members
Motion Class Reference

This class is a wapper for Naoqi Motion Class. More...

#include <motion.hpp>

Public Member Functions

std::vector< double > getAngles (const std::string &robot_part)
 get joints angles More...
 
std::vector< std::string > getBodyNames (const std::string &robot_part)
 get body names More...
 
std::vector< std::string > getBodyNamesFromGroup (const std::vector< std::string > &motor_groups)
 get body names based on motor groups More...
 
void init (const std::vector< std::string > &joints_names)
 initialize with joints names to control More...
 
void manageConcurrence ()
 Manage concurrence of DCM and ALMotion. More...
 
 Motion (const qi::SessionPtr &session)
 
void moveTo (const float &vel_x, const float &vel_y, const float &vel_th)
 Move the robot at given velocity and angle. More...
 
void rest ()
 go to the rest position More...
 
bool robotIsWakeUp ()
 check if the robot is waked up More...
 
bool setStiffnessArms (const float &stiffness, const float &time)
 set stiffness for arms More...
 
bool stiffnessInterpolation (const std::string &motor_group, const float &stiffness, const float &time)
 set stiffness for one motor group More...
 
bool stiffnessInterpolation (const std::vector< std::string > &motor_groups, const float &stiffness, const float &time)
 set stiffness for motors groups More...
 
void wakeUp ()
 wake up the robot More...
 
void writeJoints (const std::vector< double > &joint_commands)
 set joints values More...
 

Private Attributes

std::vector< std::string > joints_names_
 
qi::AnyObject motion_proxy_
 

Detailed Description

This class is a wapper for Naoqi Motion Class.

Definition at line 27 of file motion.hpp.

Constructor & Destructor Documentation

Motion::Motion ( const qi::SessionPtr &  session)

Definition at line 24 of file motion.cpp.

Member Function Documentation

std::vector< double > Motion::getAngles ( const std::string &  robot_part)

get joints angles

Definition at line 184 of file motion.cpp.

std::vector< std::string > Motion::getBodyNames ( const std::string &  robot_part)

get body names

Definition at line 120 of file motion.cpp.

std::vector< std::string > Motion::getBodyNamesFromGroup ( const std::vector< std::string > &  motor_groups)

get body names based on motor groups

Definition at line 135 of file motion.cpp.

void Motion::init ( const std::vector< std::string > &  joints_names)

initialize with joints names to control

Definition at line 66 of file motion.cpp.

void Motion::manageConcurrence ( )

Manage concurrence of DCM and ALMotion.

Definition at line 147 of file motion.cpp.

void Motion::moveTo ( const float &  vel_x,
const float &  vel_y,
const float &  vel_th 
)

Move the robot at given velocity and angle.

Definition at line 170 of file motion.cpp.

void Motion::rest ( )

go to the rest position

Definition at line 103 of file motion.cpp.

bool Motion::robotIsWakeUp ( )

check if the robot is waked up

Definition at line 71 of file motion.cpp.

bool Motion::setStiffnessArms ( const float &  stiffness,
const float &  time 
)

set stiffness for arms

Definition at line 248 of file motion.cpp.

bool Motion::stiffnessInterpolation ( const std::string &  motor_group,
const float &  stiffness,
const float &  time 
)

set stiffness for one motor group

Definition at line 229 of file motion.cpp.

bool Motion::stiffnessInterpolation ( const std::vector< std::string > &  motor_groups,
const float &  stiffness,
const float &  time 
)

set stiffness for motors groups

Definition at line 218 of file motion.cpp.

void Motion::wakeUp ( )

wake up the robot

Definition at line 86 of file motion.cpp.

void Motion::writeJoints ( const std::vector< double > &  joint_commands)

set joints values

Definition at line 200 of file motion.cpp.

Member Data Documentation

std::vector<std::string> Motion::joints_names_
private

joints names

Definition at line 80 of file motion.hpp.

qi::AnyObject Motion::motion_proxy_
private

Motion proxy

Definition at line 77 of file motion.hpp.


The documentation for this class was generated from the following files:


naoqi_dcm_driver
Author(s): Konstantinos Chatzilygeroudis , Mikael Arguedas , Karsten Knese , Natalia Lyubova
autogenerated on Thu Jul 25 2019 03:49:27