Public Member Functions | Private Member Functions | Private Attributes | List of all members
cob_tricycle_controller::OdometryController Class Reference
Inheritance diagram for cob_tricycle_controller::OdometryController:
Inheritance graph
[legend]

Public Member Functions

virtual bool init (hardware_interface::JointStateInterface *hw, ros::NodeHandle &nh)
 
 OdometryController ()
 
virtual bool srv_reset (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res)
 
virtual void starting (const ros::Time &time)
 
virtual void stopping (const ros::Time &time)
 
virtual void update (const ros::Time &time, const ros::Duration &period)
 
- Public Member Functions inherited from controller_interface::Controller< hardware_interface::JointStateInterface >
virtual bool init (T *, ros::NodeHandle &)
 
virtual bool init (T *, ros::NodeHandle &, ros::NodeHandle &)
 
- Public Member Functions inherited from controller_interface::ControllerBase
virtual void aborting (const ros::Time &)
 
virtual void aborting (const ros::Time &)
 
bool abortRequest (const ros::Time &time)
 
bool abortRequest (const ros::Time &time)
 
 ControllerBase ()=default
 
 ControllerBase (const ControllerBase &)=delete
 
 ControllerBase (ControllerBase &&)=delete
 
bool isAborted () const
 
bool isAborted () const
 
bool isInitialized () const
 
bool isInitialized () const
 
bool isRunning () const
 
bool isRunning () const
 
bool isStopped () const
 
bool isStopped () const
 
bool isWaiting () const
 
bool isWaiting () const
 
ControllerBaseoperator= (const ControllerBase &)=delete
 
ControllerBaseoperator= (ControllerBase &&)=delete
 
bool startRequest (const ros::Time &time)
 
bool startRequest (const ros::Time &time)
 
bool stopRequest (const ros::Time &time)
 
bool stopRequest (const ros::Time &time)
 
void updateRequest (const ros::Time &time, const ros::Duration &period)
 
void updateRequest (const ros::Time &time, const ros::Duration &period)
 
virtual void waiting (const ros::Time &)
 
virtual void waiting (const ros::Time &)
 
bool waitRequest (const ros::Time &time)
 
bool waitRequest (const ros::Time &time)
 
virtual ~ControllerBase ()=default
 

Private Member Functions

void publish (const ros::TimerEvent &)
 
void updateState ()
 

Private Attributes

hardware_interface::JointStateHandle drive_joint_
 
boost::mutex mutex_
 
nav_msgs::Odometry odom_
 
geometry_msgs::TransformStamped odom_tf_
 
boost::scoped_ptr< OdometryTrackerodom_tracker_
 
PlatformState platform_state_
 
ros::Timer publish_timer_
 
bool reset_
 
ros::ServiceServer service_reset_
 
hardware_interface::JointStateHandle steer_joint_
 
ros::Time stop_time_
 
boost::scoped_ptr< tf::TransformBroadcastertf_broadcast_odometry_
 
ros::Publisher topic_pub_odometry_
 
WheelState wheel_state_
 

Additional Inherited Members

- Public Types inherited from controller_interface::ControllerBase
typedef std::vector< hardware_interface::InterfaceResourcesClaimedResources
 
enum  ControllerState {
  ControllerState::CONSTRUCTED, ControllerState::INITIALIZED, ControllerState::RUNNING, ControllerState::STOPPED,
  ControllerState::WAITING, ControllerState::ABORTED
}
 
- Public Attributes inherited from controller_interface::ControllerBase
ControllerState state_
 
- Protected Member Functions inherited from controller_interface::Controller< hardware_interface::JointStateInterface >
std::string getHardwareInterfaceType () const
 
bool initRequest (hardware_interface::RobotHW *robot_hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh, ClaimedResources &claimed_resources) override
 

Detailed Description

Definition at line 40 of file odom_plugin.cpp.

Constructor & Destructor Documentation

◆ OdometryController()

cob_tricycle_controller::OdometryController::OdometryController ( )
inline

Definition at line 43 of file odom_plugin.cpp.

Member Function Documentation

◆ init()

virtual bool cob_tricycle_controller::OdometryController::init ( hardware_interface::JointStateInterface hw,
ros::NodeHandle nh 
)
inlinevirtual

Definition at line 45 of file odom_plugin.cpp.

◆ publish()

void cob_tricycle_controller::OdometryController::publish ( const ros::TimerEvent )
inlineprivate

Definition at line 171 of file odom_plugin.cpp.

◆ srv_reset()

virtual bool cob_tricycle_controller::OdometryController::srv_reset ( std_srvs::Trigger::Request &  req,
std_srvs::Trigger::Response &  res 
)
inlinevirtual

Definition at line 120 of file odom_plugin.cpp.

◆ starting()

virtual void cob_tricycle_controller::OdometryController::starting ( const ros::Time time)
inlinevirtual

Reimplemented from controller_interface::ControllerBase.

Definition at line 114 of file odom_plugin.cpp.

◆ stopping()

virtual void cob_tricycle_controller::OdometryController::stopping ( const ros::Time time)
inlinevirtual

Reimplemented from controller_interface::ControllerBase.

Definition at line 151 of file odom_plugin.cpp.

◆ update()

virtual void cob_tricycle_controller::OdometryController::update ( const ros::Time time,
const ros::Duration period 
)
inlinevirtual

Implements controller_interface::ControllerBase.

Definition at line 136 of file odom_plugin.cpp.

◆ updateState()

void cob_tricycle_controller::OdometryController::updateState ( )
inlineprivate

Definition at line 192 of file odom_plugin.cpp.

Member Data Documentation

◆ drive_joint_

hardware_interface::JointStateHandle cob_tricycle_controller::OdometryController::drive_joint_
private

Definition at line 157 of file odom_plugin.cpp.

◆ mutex_

boost::mutex cob_tricycle_controller::OdometryController::mutex_
private

Definition at line 167 of file odom_plugin.cpp.

◆ odom_

nav_msgs::Odometry cob_tricycle_controller::OdometryController::odom_
private

Definition at line 165 of file odom_plugin.cpp.

◆ odom_tf_

geometry_msgs::TransformStamped cob_tricycle_controller::OdometryController::odom_tf_
private

Definition at line 168 of file odom_plugin.cpp.

◆ odom_tracker_

boost::scoped_ptr<OdometryTracker> cob_tricycle_controller::OdometryController::odom_tracker_
private

Definition at line 163 of file odom_plugin.cpp.

◆ platform_state_

PlatformState cob_tricycle_controller::OdometryController::platform_state_
private

Definition at line 154 of file odom_plugin.cpp.

◆ publish_timer_

ros::Timer cob_tricycle_controller::OdometryController::publish_timer_
private

Definition at line 164 of file odom_plugin.cpp.

◆ reset_

bool cob_tricycle_controller::OdometryController::reset_
private

Definition at line 166 of file odom_plugin.cpp.

◆ service_reset_

ros::ServiceServer cob_tricycle_controller::OdometryController::service_reset_
private

Definition at line 160 of file odom_plugin.cpp.

◆ steer_joint_

hardware_interface::JointStateHandle cob_tricycle_controller::OdometryController::steer_joint_
private

Definition at line 156 of file odom_plugin.cpp.

◆ stop_time_

ros::Time cob_tricycle_controller::OdometryController::stop_time_
private

Definition at line 169 of file odom_plugin.cpp.

◆ tf_broadcast_odometry_

boost::scoped_ptr<tf::TransformBroadcaster> cob_tricycle_controller::OdometryController::tf_broadcast_odometry_
private

Definition at line 162 of file odom_plugin.cpp.

◆ topic_pub_odometry_

ros::Publisher cob_tricycle_controller::OdometryController::topic_pub_odometry_
private

Definition at line 159 of file odom_plugin.cpp.

◆ wheel_state_

WheelState cob_tricycle_controller::OdometryController::wheel_state_
private

Definition at line 155 of file odom_plugin.cpp.


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


cob_tricycle_controller
Author(s): Felix Messmer
autogenerated on Mon May 1 2023 02:44:40