old_contents: #!/usr/bin/env python
  
  from rospy import logerr
  from httplib import HTTPConnection
  
  class Transport(object):
  
      # TODO: make these configurable options
      hostname = "192.168.4.1"
      port = "1234"
  
      def send_command(self, params):
          request = "/" + "/".join(map(str,params))
  
          try:
              self.conn = HTTPConnection(self.hostname, port=self.port)
              self.conn.request("GET", request)
              response = self.conn.getresponse().read()
              self.conn.close()
              return response
          except Exception as e:
              logerr("the HTTP request failed: " + str(e))
              return 0
  
      def move_forward(self):
          self.send_command([3, 100, 100])
  
      def move_reverse(self):
          self.send_command([3, -100, -100])
  
      def move_left(self):
          self.send_command([3, -100, 100])
  
      def move_right(self):
          self.send_command([3, 100, -100])
  
      def stop(self):
          self.send_command([3, 0, 0])
  
new_contents: #!/usr/bin/env python
  
  from rospy import logerr
  from httplib import HTTPConnection
  
  class Transport(object):
  
      # TODO: make these configurable options
      hostname = "192.168.4.1"
      port = "1234"
  
      def send_command(self, params):
          request = "/" + "/".join(map(str,params))
  
          try:
              self.conn = HTTPConnection(self.hostname, port=self.port)
              self.conn.request("GET", request)
              response = self.conn.getresponse().read()
              self.conn.close()
              return response
          except Exception as e:
              logerr("the HTTP request failed: " + str(e))
              return 0
  
      def move_forward(self):
          self.send_command([3, 100, 100])
  
      def move_reverse(self):
          self.send_command([3, -100, -100])
  
      def move_left(self):
          self.send_command([3, -100, 100])
  
      def move_right(self):
          self.send_command([3, 100, -100])
  
      def stop(self):
          self.send_command([3, 0, 0])
  
      def see(self):
          return self.send_command([5])
  
subject: add see command support