Skip to content
Snippets Groups Projects
Commit 3952f462 authored by Daniel Christoph's avatar Daniel Christoph
Browse files

Replace location_monitor_node.py

parent ed4e1523
No related merge requests found
#!/usr/bin/env python
import math
import gc
import rospy
import re
import array
......@@ -199,7 +200,8 @@ def callback(msg):
print("BotX: " + str(botx))
print("BotY: " + str(boty))
tuto = Tutorial()
tuto.show_gazebo_models(botx, boty)
tuto.show_gazebo_models(botx, boty)
gc.collect()
......@@ -207,6 +209,7 @@ def main():
rospy.init_node('location_monitor') #Node in gang bringen
try:
rospy.Subscriber("/odom", Odometry, callback) #Koordinaten des bots werden durch /odom geschickt und an callback gesendet
gc.collect()
rospy.spin()
except rospy.ROSInterruptException:
pass
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment