Public Member Functions | Public Attributes | Private Attributes
SerialCom Class Reference

List of all members.

Public Member Functions

void comCallBack (const dlut_move_base::Velocity &vel)
int comInit ()
int openPort (int fd, int comport)
int packGet (int fd, char ptr)
int packSend (int fd, char ptr, char buff[])
 SerialCom ()
int setOpt (int fd, int nspeed, int nbits, char nevent, int nstop)
void timerPackGet (const ros::TimerEvent &)
void velSend (const dlut_move_base::Twist &tw)
 ~SerialCom ()

Public Attributes

ros::NodeHandle serial_node_handle_
dlut_move_base::Twist twist_

Private Attributes

int baudrate_
ros::Time current_time_
int fd_
ros::Time last_time_
tf::TransformBroadcaster odom_broadcaster_
ros::Publisher odom_pub_
int port_
ros::Subscriber sub_cmd_twist_
ros::Subscriber sub_cmd_vel_
double th_
ros::Publisher vel_pub_
double vth_
double vx_
double vy_
double x_
double y_

Detailed Description

Definition at line 57 of file serial_com.cpp.


Constructor & Destructor Documentation

Definition at line 98 of file serial_com.cpp.

Definition at line 126 of file serial_com.cpp.


Member Function Documentation

void SerialCom::comCallBack ( const dlut_move_base::Velocity &  vel)

Definition at line 426 of file serial_com.cpp.

Definition at line 457 of file serial_com.cpp.

int SerialCom::openPort ( int  fd,
int  comport 
)

Definition at line 132 of file serial_com.cpp.

int SerialCom::packGet ( int  fd,
char  ptr 
)

Definition at line 348 of file serial_com.cpp.

int SerialCom::packSend ( int  fd,
char  ptr,
char  buff[] 
)

Definition at line 299 of file serial_com.cpp.

int SerialCom::setOpt ( int  fd,
int  nspeed,
int  nbits,
char  nevent,
int  nstop 
)

Definition at line 180 of file serial_com.cpp.

Definition at line 477 of file serial_com.cpp.

void SerialCom::velSend ( const dlut_move_base::Twist &  tw)

Definition at line 438 of file serial_com.cpp.


Member Data Documentation

int SerialCom::baudrate_ [private]

Definition at line 83 of file serial_com.cpp.

Definition at line 95 of file serial_com.cpp.

int SerialCom::fd_ [private]

Definition at line 75 of file serial_com.cpp.

Definition at line 95 of file serial_com.cpp.

tf::TransformBroadcaster SerialCom::odom_broadcaster_ [private]

Definition at line 81 of file serial_com.cpp.

Definition at line 79 of file serial_com.cpp.

int SerialCom::port_ [private]

Definition at line 83 of file serial_com.cpp.

Definition at line 72 of file serial_com.cpp.

Definition at line 77 of file serial_com.cpp.

Definition at line 77 of file serial_com.cpp.

double SerialCom::th_ [private]

Definition at line 88 of file serial_com.cpp.

dlut_move_base::Twist SerialCom::twist_

Definition at line 70 of file serial_com.cpp.

Definition at line 78 of file serial_com.cpp.

double SerialCom::vth_ [private]

Definition at line 93 of file serial_com.cpp.

double SerialCom::vx_ [private]

Definition at line 91 of file serial_com.cpp.

double SerialCom::vy_ [private]

Definition at line 92 of file serial_com.cpp.

double SerialCom::x_ [private]

Definition at line 86 of file serial_com.cpp.

double SerialCom::y_ [private]

Definition at line 87 of file serial_com.cpp.


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


dlut_move_base
Author(s): Zhuang Yan , Yan Fei, Dong Bing Bing
autogenerated on Sat Jun 8 2019 19:55:39