Welcome to Second-Assignment-RT1’s documentation!
Indices and tables
Second Assignment documentation!
This is the documentation of the Second Assignment of RT1.
Node A
details
This node implement an action client allowing an user to set a target(x,y) or to cancel it at any time. This node also publish the robot position and velocity as a custom message by reling on the topic /odom.
- Subscribes to:
/odom
- Publish to:
/bot_info /tgt
- Services:
goal_info
- src.node_a.clbk_odom(msg)[source]
Callback function to publish the desired information taken from /odom.
Args: msg(Odometry): It contains the odometry of the robot
- src.node_a.getCordinatesFromConsole()[source]
Function that ask to the user a new targhet. It check if the input given is valid.
Node B
details
This node send a request to the service goal_info then it print the response wich contains the number of target canceled and the number of target reached
- Services:
goal_info
Node C
details
This node print the robot average speed and the distance from the actual target.
- Subscribes to:
/bot_info /tgt