move test_yopo_ros.py and yopo_planner_node.cpp to single script

This commit is contained in:
TJU_Lu
2024-12-24 18:03:49 +08:00
parent 09e832c829
commit 1a9f7c9f42
7 changed files with 892 additions and 12 deletions

View File

@@ -1,3 +1,15 @@
"""
YOPO Network Inference NODE:
Subscribe odometry and depth messages, and perform network inference
Use:
$ cd ~/YOPO/run
$ conda activate yopo
$ python test_yopo_ros.py --trial=1 --epoch=0 --iter=0
$ cd ~/YOPO/flightlib/build
$ ./yopo_planner_node
"""
import rospy
from sensor_msgs.msg import Image
from nav_msgs.msg import Odometry