forked from xtdrone/XTDrone
publish time_usgae
This commit is contained in:
parent
3f305263de
commit
2baae63404
|
@ -76,6 +76,7 @@ if __name__ == "__main__":
|
|||
get_model_state = rospy.ServiceProxy("/gazebo/get_model_state",GetModelState)
|
||||
|
||||
score_pub = rospy.Publisher("/score",Int16,queue_size=2)
|
||||
time_usage_pub = rospy.Publisher("/time_usage",Int16,queue_size=2)
|
||||
left_actors_pub = rospy.Publisher("/left_actors",String,queue_size=2)
|
||||
actor_blue_sub = rospy.Subscriber("/actor_blue_info",ActorInfo,actor_info_callback)
|
||||
actor_green_sub = rospy.Subscriber("/actor_green_info",ActorInfo,actor_info_callback)
|
||||
|
@ -113,6 +114,7 @@ if __name__ == "__main__":
|
|||
while True:
|
||||
pass
|
||||
score_pub.publish(score)
|
||||
time_usage_pub.publish(int(time_usage))
|
||||
left_actors_pub.publish(str(left_actors))
|
||||
rate.sleep()
|
||||
|
||||
|
|
Loading…
Reference in New Issue