You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] [1623389853.498152, 146.106000]: Errorprocessingrequest: 'NoneType'objecthasnoattribute'request'
['Traceback (most recent call last):\n', ' File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py", line 632, in _handle_request\n response = convert_return_to_response(self.handler(request), self.response_class)\n', ' File "/SC2/src/scoot/src/Driver.py", line 26, in wrapped_f\n return func(*args, **kwargs)\n', ' File "/SC2/src/scoot/src/Driver.py", line 148, in _control\n self.run() # this will be a blocking call\n', ' File "/SC2/src/scoot/src/Driver.py", line 309, in run\n if self.Doing.request.y < 0:\n', "AttributeError: 'NoneType' object has no attribute 'request'\n"]
---------------------------------------------------------------------------ServiceExceptionTraceback (mostrecentcalllast)
/SC2/src/scoot/src/repl.pyin<module>---->1scout.searchRandomWalk.main()
/SC2/src/scoot/src/behaviors/scout/searchRandomWalk.pyinmain(task)
83ignoring=Obstacles.CUBESAT|Obstacles.HOME_FIDUCIAL|Obstacles.HOME_LEG|Obstacles.VISION_VOLATILE84--->85random_walk(num_moves=50)
86scoot.brake()
87rospy.loginfo("I'm probably lost!") # @ TODO add a reorient state in the task state meh/SC2/src/scoot/src/behaviors/scout/searchRandomWalk.pyinrandom_walk(num_moves)
47ifrospy.is_shutdown():
48sys.exit(-1)
--->49wander()
50exceptVolatileException:
51rospy.logwarn("I found a volatile! "+scoot.VOL_TYPES[scoot.control_data])
/SC2/src/scoot/src/behaviors/scout/searchRandomWalk.pyinwander()
28try:
29rospy.loginfo("Wandering...")
--->30scoot.drive(random.gauss(4, 1), ignore=ignoring)
31scoot.turn(random.gauss(-math.pi/4, math.pi/4), ignore=ignoring)
32/SC2/src/scoot/src/Scoot.pyindrive(self, distance, **kwargs)
485x=distance,
486 )
-->487returnself.__drive(req, **kwargs)
488489deftranslate(self, x, y, **kwargs):
/SC2/src/scoot/src/Scoot.pyinwrapped_f(*args, **kwargs)
86defwrapped_f(*args, **kwargs):
87withself.lock:
--->88returnfunc(*args, **kwargs)
8990returnwrapped_f/SC2/src/scoot/src/Scoot.pyin__drive(self, request, **kwargs)
447request.angular=kwargs['angular']
448-->449move_result=self.control([request]).result450value=move_result.result451obstacle=move_result.obstacle/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.pyin__call__(self, *args, **kwds)
440message. Thisisusuallya type errorwithoneofthefields.
441"""--> 442 return self.call(*args, **kwds) 443 444 def _get_service_uri(self, request):/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py in call(self, *args, **kwds) 520 521 try:--> 522 responses = transport.receive_once() 523 if len(responses) == 0: 524 raise ServiceException("service [%s] returned no response"%self.resolved_name)/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_base.py in receive_once(self) 733 while not msg_queue and not self.done and not is_shutdown(): 734 if b.tell() >= 4:--> 735 p.read_messages(b, msg_queue, sock) 736 if not msg_queue: 737 self.stat_bytes += recv_buff(sock, b, p.buff_size)/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py in read_messages(self, b, msg_queue, sock) 358 @type sock: socket.socket 359 """-->360self._read_ok_byte(b, sock)
361rospy.msg.deserialize_messages(b, msg_queue, self.recv_data_class, queue_size=self.queue_size, max_msgs=1, start=1) #rospy.msg362#deserialize_messages only resets the buffer to the start/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.pyin_read_ok_byte(self, b, sock)
341b.seek(0)
342b.truncate(0)
-->343raiseServiceException("service [%s] responded with an error: %s"%(self.resolved_name, str))
344else:
345# success, set seek point to start of messageServiceException: service [/small_scout_1/control] respondedwithanerror: b"error processing request: 'NoneType' object has no attribute 'request'"
The text was updated successfully, but these errors were encountered:
Encountered while searching
The text was updated successfully, but these errors were encountered: