Functions | Variables
IrRanger.cpp File Reference
#include <ros.h>
#include <ros/time.h>
#include <sensor_msgs/Range.h>
Include dependency graph for IrRanger.cpp:

Go to the source code of this file.

Functions

float getRange (PinName pin_num)
 
int main ()
 

Variables

char frameid [] = "/ir_ranger"
 
ros::NodeHandle nh
 
ros::Publisher pub_range ("range_data",&range_msg)
 
sensor_msgs::Range range_msg
 
unsigned long range_timer
 
Timer t
 

Function Documentation

float getRange ( PinName  pin_num)

Definition at line 30 of file IrRanger.cpp.

int main ( void  )

Definition at line 46 of file IrRanger.cpp.

Variable Documentation

char frameid[] = "/ir_ranger"

Definition at line 43 of file IrRanger.cpp.

Definition at line 11 of file IrRanger.cpp.

ros::Publisher pub_range("range_data",&range_msg)
sensor_msgs::Range range_msg

Definition at line 14 of file IrRanger.cpp.

unsigned long range_timer

Definition at line 24 of file IrRanger.cpp.

Timer t

Definition at line 45 of file IrRanger.cpp.



rosserial_mbed
Author(s): Gary Servin
autogenerated on Mon Jun 10 2019 14:53:26