Defines | Functions
main.cpp File Reference
#include "nanotron_swarm/cntronbase.h"
#include <rangeonly_msgs/P2PRange.h>
#include <iostream>
#include <unistd.h>
#include <ros/ros.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Defines

#define DEFAULT_FRAME_ID   "/base_nanotron"
#define DEFAULT_PORT   "/dev/ttyUSB0"

Functions

void detectBeacons (CNTronBase &nodoBase)
int main (int argc, char **argv)
void publishRange (CNTronRange &range, ros::Publisher publisher, std::string frameID)
bool rangingRequest (CNTronBase &nodoBase, int node, CNTronRange &nodo)

Define Documentation

#define DEFAULT_FRAME_ID   "/base_nanotron"

Definition at line 41 of file main.cpp.

#define DEFAULT_PORT   "/dev/ttyUSB0"

Software License Agreement (BSD License)

Copyright (c) 2013-2015 Robotics, Vision and Control Group (GRVC), University of Seville. 2014 Felipe R.Fabresse <felramfab@us.es> 2014 Alfredo Vazquez <avringeniero@gmail.com> 2015 Felipe R.Fabresse <felramfab@gmail.com> All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition at line 40 of file main.cpp.


Function Documentation

void detectBeacons ( CNTronBase nodoBase)

Definition at line 102 of file main.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 47 of file main.cpp.

void publishRange ( CNTronRange range,
ros::Publisher  publisher,
std::string  frameID 
)

Definition at line 151 of file main.cpp.

bool rangingRequest ( CNTronBase nodoBase,
int  node,
CNTronRange nodo 
)

Definition at line 122 of file main.cpp.



nanotron_swarm
Author(s): Felipe Ramón Fabresse, Alfredo Vázquez Reyes, Fernando Caballero Benitez
autogenerated on Sat Jun 8 2019 20:36:48