Skip to content
Snippets Groups Projects
Commit f02f5e6c authored by Emil Harlan's avatar Emil Harlan
Browse files

a

parent cf3d48c2
No related branches found
No related tags found
No related merge requests found
......@@ -39,17 +39,11 @@ class vel_from_ros_node(Node):
self.my_ep_chassis.drive_speed(x = 0, y = 0, z = 0.5)
def isConnected(self):
try:
# connect to the host -- tells us if the host is actually
# reachable
sock = socket.create_connection(("www.google.de", 80))
if sock is not None:
print('Clossing socket')
sock.close
return True
except OSError:
pass
def check_ip_reachability(self):
response = ping3.ping("192.168.1.5")
if response is not None:
return True
else:
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment