Public Member Functions | Protected Member Functions | Protected Attributes
SetTwistHandler Class Reference

#include <SetTwistHandler.h>

Inheritance diagram for SetTwistHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

unsigned int getObjectType () const
void handleSimulation ()
 SetTwistHandler ()
void synchronize ()
 ~SetTwistHandler ()

Protected Member Functions

void _initialize ()
void TwistCommandCallback (const geometry_msgs::TwistStamped &msg)

Protected Attributes

simInt _isStatic
ros::Subscriber _sub
geometry_msgs::TwistStamped _twistCommands

Detailed Description

Handler to control the velocity of an object. It automatically subscribes to geometry_msgs/TwistStamped messages for receiving twist commands. To move the object, generate a message geometry_msgs/TwistStamped in the topic /vrep/object_name_Vrep/SetTwist

Definition at line 15 of file SetTwistHandler.h.


Constructor & Destructor Documentation

Definition at line 14 of file SetTwistHandler.cpp.

Definition at line 17 of file SetTwistHandler.cpp.


Member Function Documentation

void SetTwistHandler::_initialize ( ) [protected, virtual]

Implements GenericObjectHandler.

Definition at line 114 of file SetTwistHandler.cpp.

unsigned int SetTwistHandler::getObjectType ( ) const [virtual]

Implements GenericObjectHandler.

Definition at line 20 of file SetTwistHandler.cpp.

Implements GenericObjectHandler.

Definition at line 54 of file SetTwistHandler.cpp.

void SetTwistHandler::synchronize ( ) [virtual]

Reimplemented from GenericObjectHandler.

Definition at line 24 of file SetTwistHandler.cpp.

void SetTwistHandler::TwistCommandCallback ( const geometry_msgs::TwistStamped &  msg) [protected]

Callback for velocity commands.

Definition at line 165 of file SetTwistHandler.cpp.


Member Data Documentation

simInt SetTwistHandler::_isStatic [protected]

Specifies if the object is static or dynamically enabled

Definition at line 61 of file SetTwistHandler.h.

Subscriber for Obj twist.

Definition at line 46 of file SetTwistHandler.h.

geometry_msgs::TwistStamped SetTwistHandler::_twistCommands [protected]

Last received TwistCommand message.

Definition at line 51 of file SetTwistHandler.h.


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


rigid_body_handler
Author(s): Riccardo Spica , Giovanni Claudio
autogenerated on Wed Sep 9 2015 18:55:00