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

#include <turtlebot3_fake.h>

Public Member Functions

bool init ()
 
 Turtlebot3Fake ()
 
bool update ()
 
 ~Turtlebot3Fake ()
 

Private Member Functions

void commandVelocityCallback (const geometry_msgs::TwistConstPtr cmd_vel_msg)
 
void updateJoint (void)
 
bool updateOdometry (ros::Duration diff_time)
 
void updateTF (geometry_msgs::TransformStamped &odom_tf)
 

Private Attributes

ros::Subscriber cmd_vel_sub_
 
double cmd_vel_timeout_
 
double goal_angular_velocity_
 
double goal_linear_velocity_
 
sensor_msgs::JointState joint_states_
 
std::string joint_states_name_ [2]
 
ros::Publisher joint_states_pub_
 
ros::Time last_cmd_vel_time_
 
double last_position_ [2]
 
double last_velocity_ [2]
 
ros::NodeHandle nh_
 
ros::NodeHandle nh_priv_
 
nav_msgs::Odometry odom_
 
float odom_pose_ [3]
 
ros::Publisher odom_pub_
 
float odom_vel_ [3]
 
double pose_cov_ [36]
 
ros::Time prev_update_time_
 
double robot_radius_
 
tf::TransformBroadcaster tf_broadcaster_
 
double turning_radius_
 
double wheel_seperation_
 
double wheel_speed_cmd_ [2]
 

Detailed Description

Definition at line 58 of file turtlebot3_fake.h.

Constructor & Destructor Documentation

Turtlebot3Fake::Turtlebot3Fake ( )

Definition at line 21 of file turtlebot3_fake.cpp.

Turtlebot3Fake::~Turtlebot3Fake ( )

Definition at line 29 of file turtlebot3_fake.cpp.

Member Function Documentation

void Turtlebot3Fake::commandVelocityCallback ( const geometry_msgs::TwistConstPtr  cmd_vel_msg)
private

Definition at line 110 of file turtlebot3_fake.cpp.

bool Turtlebot3Fake::init ( )

Definition at line 36 of file turtlebot3_fake.cpp.

bool Turtlebot3Fake::update ( )

Definition at line 209 of file turtlebot3_fake.cpp.

void Turtlebot3Fake::updateJoint ( void  )
private

Definition at line 185 of file turtlebot3_fake.cpp.

bool Turtlebot3Fake::updateOdometry ( ros::Duration  diff_time)
private

Definition at line 124 of file turtlebot3_fake.cpp.

void Turtlebot3Fake::updateTF ( geometry_msgs::TransformStamped &  odom_tf)
private

Definition at line 196 of file turtlebot3_fake.cpp.

Member Data Documentation

ros::Subscriber Turtlebot3Fake::cmd_vel_sub_
private

Definition at line 83 of file turtlebot3_fake.h.

double Turtlebot3Fake::cmd_vel_timeout_
private

Definition at line 92 of file turtlebot3_fake.h.

double Turtlebot3Fake::goal_angular_velocity_
private

Definition at line 91 of file turtlebot3_fake.h.

double Turtlebot3Fake::goal_linear_velocity_
private

Definition at line 90 of file turtlebot3_fake.h.

sensor_msgs::JointState Turtlebot3Fake::joint_states_
private

Definition at line 85 of file turtlebot3_fake.h.

std::string Turtlebot3Fake::joint_states_name_[2]
private

Definition at line 98 of file turtlebot3_fake.h.

ros::Publisher Turtlebot3Fake::joint_states_pub_
private

Definition at line 79 of file turtlebot3_fake.h.

ros::Time Turtlebot3Fake::last_cmd_vel_time_
private

Definition at line 75 of file turtlebot3_fake.h.

double Turtlebot3Fake::last_position_[2]
private

Definition at line 100 of file turtlebot3_fake.h.

double Turtlebot3Fake::last_velocity_[2]
private

Definition at line 101 of file turtlebot3_fake.h.

ros::NodeHandle Turtlebot3Fake::nh_
private

Definition at line 68 of file turtlebot3_fake.h.

ros::NodeHandle Turtlebot3Fake::nh_priv_
private

Definition at line 69 of file turtlebot3_fake.h.

nav_msgs::Odometry Turtlebot3Fake::odom_
private

Definition at line 86 of file turtlebot3_fake.h.

float Turtlebot3Fake::odom_pose_[3]
private

Definition at line 94 of file turtlebot3_fake.h.

ros::Publisher Turtlebot3Fake::odom_pub_
private

Definition at line 80 of file turtlebot3_fake.h.

float Turtlebot3Fake::odom_vel_[3]
private

Definition at line 95 of file turtlebot3_fake.h.

double Turtlebot3Fake::pose_cov_[36]
private

Definition at line 96 of file turtlebot3_fake.h.

ros::Time Turtlebot3Fake::prev_update_time_
private

Definition at line 76 of file turtlebot3_fake.h.

double Turtlebot3Fake::robot_radius_
private

Definition at line 105 of file turtlebot3_fake.h.

tf::TransformBroadcaster Turtlebot3Fake::tf_broadcaster_
private

Definition at line 87 of file turtlebot3_fake.h.

double Turtlebot3Fake::turning_radius_
private

Definition at line 104 of file turtlebot3_fake.h.

double Turtlebot3Fake::wheel_seperation_
private

Definition at line 103 of file turtlebot3_fake.h.

double Turtlebot3Fake::wheel_speed_cmd_[2]
private

Definition at line 89 of file turtlebot3_fake.h.


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


turtlebot3_fake
Author(s): Pyo , Darby Lim
autogenerated on Sat Jan 16 2021 03:56:02