Interface for robots based on ROS.
More...
#include <vpROSRobot.h>
Interface for robots based on ROS.
Definition at line 62 of file vpROSRobot.h.
◆ vpROSRobot() [1/2]
vpROSRobot::vpROSRobot |
( |
const vpROSRobot & |
robot | ) |
|
|
private |
◆ vpROSRobot() [2/2]
vpROSRobot::vpROSRobot |
( |
| ) |
|
◆ ~vpROSRobot()
vpROSRobot::~vpROSRobot |
( |
| ) |
|
|
virtual |
◆ get_eJe()
void vpROSRobot::get_eJe |
( |
vpMatrix & |
eJe | ) |
|
|
inlineprivate |
◆ get_fJe()
void vpROSRobot::get_fJe |
( |
vpMatrix & |
| ) |
|
|
inlineprivate |
Get the robot Jacobian expressed in the robot reference (or world) frame.
- Warning
- Not implemented.
Definition at line 91 of file vpROSRobot.h.
◆ getArticularDisplacement()
void vpROSRobot::getArticularDisplacement |
( |
vpColVector & |
| ) |
|
|
inlineprivate |
Get a displacement expressed in the joint space between two successive position control.
- Warning
- Not implemented.
Definition at line 97 of file vpROSRobot.h.
◆ getCameraDisplacement()
void vpROSRobot::getCameraDisplacement |
( |
vpColVector & |
| ) |
|
|
private |
◆ getDisplacement() [1/2]
void vpROSRobot::getDisplacement |
( |
const vpRobot::vpControlFrameType |
frame, |
|
|
vpColVector & |
dis |
|
) |
| |
Get the robot displacement (frame has to be specified).
- Parameters
-
frame | : Control frame. For the moment, only vpRobot::REFERENCE_FRAME is implemented. |
dis | : A 6 dimension vector that corresponds to the displacement of the robot since the last call to the function. |
- Exceptions
-
vpRobotException::wrongStateError | : If the specified control frame is not supported. |
Definition at line 252 of file vpROSRobot.cpp.
◆ getDisplacement() [2/2]
void vpROSRobot::getDisplacement |
( |
const vpRobot::vpControlFrameType |
frame, |
|
|
vpColVector & |
dis, |
|
|
struct timespec & |
timestamp |
|
) |
| |
Get the robot displacement (frame has to be specified).
- Parameters
-
frame | : Control frame. For the moment, only vpRobot::REFERENCE_FRAME is implemented. |
dis | : A 6 dimension vector that corresponds to the displacement of the robot since the last call to the function. |
timestamp | : timestamp of the last update of the displacement |
- Exceptions
-
vpRobotException::wrongStateError | : If the specified control frame is not supported. |
Definition at line 219 of file vpROSRobot.cpp.
◆ getPosition()
void vpROSRobot::getPosition |
( |
const vpRobot::vpControlFrameType |
frame, |
|
|
vpColVector & |
pose |
|
) |
| |
Get the robot position (frame has to be specified).
- Parameters
-
frame | : Control frame. For the moment, only vpRobot::REFERENCE_FRAME is implemented. |
pose | : A 6 dimension vector that corresponds to the position of the robot. |
- Exceptions
-
vpRobotException::wrongStateError | : If the specified control frame is not supported. |
Definition at line 180 of file vpROSRobot.cpp.
◆ getVelocity() [1/2]
vpColVector vpROSRobot::getVelocity |
( |
const vpRobot::vpControlFrameType |
frame | ) |
|
|
private |
◆ getVelocity() [2/2]
void vpROSRobot::getVelocity |
( |
const vpRobot::vpControlFrameType |
frame, |
|
|
vpColVector & |
velocity |
|
) |
| |
|
private |
◆ init() [1/2]
void vpROSRobot::init |
( |
| ) |
|
basic initialization
Basic initialisation
Definition at line 113 of file vpROSRobot.cpp.
◆ init() [2/2]
void vpROSRobot::init |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Basic initialisation
- Parameters
-
argc,argv | : parameters of the main function |
Definition at line 92 of file vpROSRobot.cpp.
◆ odomCallback()
void vpROSRobot::odomCallback |
( |
const nav_msgs::Odometry::ConstPtr & |
msg | ) |
|
|
private |
◆ setCmdVelTopic()
void vpROSRobot::setCmdVelTopic |
( |
std::string |
topic_name | ) |
|
◆ setMasterURI()
void vpROSRobot::setMasterURI |
( |
std::string |
master_uri | ) |
|
Set the URI for ROS Master
- Parameters
-
master_uri | URI of the master ("http://127.0.0.1:11311") |
Definition at line 331 of file vpROSRobot.cpp.
◆ setNodespace()
void vpROSRobot::setNodespace |
( |
std::string |
nodespace | ) |
|
Set the nodespace
- Parameters
-
nodespace | Namespace of the connected camera (nodespace is appended to the all topic names) |
Definition at line 344 of file vpROSRobot.cpp.
◆ setOdomTopic()
void vpROSRobot::setOdomTopic |
( |
std::string |
topic_name | ) |
|
Set the ROS topic name for odom
- Parameters
-
topic_name | name of the topic. |
Definition at line 318 of file vpROSRobot.cpp.
◆ setPosition()
void vpROSRobot::setPosition |
( |
const vpRobot::vpControlFrameType |
, |
|
|
const vpColVector & |
|
|
) |
| |
|
inlineprivate |
Set a displacement (frame has to be specified) in position control.
- Warning
- Not implemented.
Definition at line 106 of file vpROSRobot.h.
◆ setVelocity()
void vpROSRobot::setVelocity |
( |
const vpRobot::vpControlFrameType |
frame, |
|
|
const vpColVector & |
vel |
|
) |
| |
Set the velocity (frame has to be specified) that will be applied to the robot.
- Parameters
-
frame | : Control frame. For the moment, only vpRobot::REFERENCE_FRAME is implemented. |
vel | : A 6 dimension vector that corresponds to the velocities to apply to the robot. |
- Exceptions
-
vpRobotException::wrongStateError | : If the specified control frame is not supported. |
Definition at line 149 of file vpROSRobot.cpp.
◆ stopMotion()
void vpROSRobot::stopMotion |
( |
| ) |
|
◆ _master_uri
std::string vpROSRobot::_master_uri |
|
protected |
◆ _nodespace
std::string vpROSRobot::_nodespace |
|
protected |
◆ _nsec
uint32_t vpROSRobot::_nsec |
|
protected |
◆ _sec
uint32_t vpROSRobot::_sec |
|
protected |
◆ _topic_cmd
std::string vpROSRobot::_topic_cmd |
|
protected |
◆ _topic_odom
std::string vpROSRobot::_topic_odom |
|
protected |
◆ cmdvel
◆ displacement
vpColVector vpROSRobot::displacement |
|
protected |
◆ isInitialized
bool vpROSRobot::isInitialized |
|
protected |
◆ odom
◆ odom_mutex
volatile bool vpROSRobot::odom_mutex |
|
protected |
vpTranslationVector vpROSRobot::p |
|
protected |
◆ pose_prev
vpColVector vpROSRobot::pose_prev |
|
protected |
◆ spinner
The documentation for this class was generated from the following files:
visp_ros
Author(s): Francois Pasteau, Fabien Spindler, Gatien Gaumerais, Alexander Oliva
autogenerated on Wed Mar 2 2022 01:13:33