UML – go to point PY node
SCHEMA
HOW it works
the node can be used only when there’s no obstacle between the robot and the target to reach. here’s how it works:
turn the head of the robot and orient it towards the target
go straight until the target hasn’t been reached
HOW TO use the node – basic way
it requires another node listening for the odom channel and checking when to deactivate the service
set
des_pos_x
anddes_pos_y
into the paramater serveractivate the service with a request to
/go_to_point_switch
of typestd_srvs/SetBool
(flagSetBool.Request.data=True
)… wait until the robot is near enough to the point
turn off the node (flag
SetBool.Request.data=False
)