Final Assignment  1.0
Research Track part 1 - Assignment 2 - RobEng A.A. 2020/2021
check_position Namespace Reference

Functions

def srv_check_position (data)
 Implementation of the service check_position More...
 
def get_odom_from_topic (data)
 Store the actual pose. More...
 

Variables

string node_name = "check_position"
 name of this node More...
 
string name_odom = "/odom"
 topic '/odom' as Subscriber More...
 
string name_check_position = "/check_position"
 name of the service 'check_position' More...
 
 actual_pose = Pose()
 position, orientation More...
 
 topic_odom = None
 handler topic '/odom' as Subscriber More...
 

Function Documentation

◆ get_odom_from_topic()

def check_position.get_odom_from_topic (   data)

Store the actual pose.

Parameters
data(nav_msgs/Odometry) the actual pose.

Definition at line 92 of file check_position.py.

◆ srv_check_position()

def check_position.srv_check_position (   data)

Implementation of the service check_position

Parameters
data(final_assignment/check_positionRequest) the request from the caller

If the flag 'check_only' is true, only send position and other informations. The value of 'distance' will be -1, 'reached' will be false. If a target is given, the service returns 'not success' response if the tolerance is less or equal than 0.

See also: /check_position service

Definition at line 58 of file check_position.py.

Variable Documentation

◆ actual_pose

check_position.actual_pose = Pose()

position, orientation

Definition at line 41 of file check_position.py.

◆ name_check_position

string check_position.name_check_position = "/check_position"

name of the service 'check_position'

Definition at line 38 of file check_position.py.

◆ name_odom

string check_position.name_odom = "/odom"

topic '/odom' as Subscriber

Definition at line 35 of file check_position.py.

◆ node_name

string check_position.node_name = "check_position"

name of this node

Definition at line 32 of file check_position.py.

◆ topic_odom

check_position.topic_odom = None

handler topic '/odom' as Subscriber

Definition at line 101 of file check_position.py.