[python] output of a code be called in another python code automatically
Hi everyone,
I have a robot equipped with different sensors. one of them is 3d lidar. i have used the pointcloud and converted them into lasersacn. now i have written a simple python code which do object detction and specify the distance from the nearest object to the lidar based on the lasersan ranges. this is the first code, now i have written another code which should use this value and start moving and stop when it reach near the object. now my problem is that i want the distance value specified in the first code(output of the first code, for instance it would say 10 m to the object), automatically be called in the second code. what should i do?
thanks