BCLab-UNM / SC2

Swarmathon Team Code for the NASA Space Challenge 2 Competition
MIT License
2 stars 0 forks source link

Track down bug in brake Service #40

Closed Carter90 closed 4 years ago

Carter90 commented 4 years ago

[ERROR] [1592585773.738979, 1187.830000]: bad callback: <bound method State._obstacle of <Driver.State instance at 0x7fbc758009b0>> Traceback (most recent call last): File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback cb(msg) File "/home/carter/Dropbox/Robits/SC2/src/scoot/src/Driver.py", line 195, in _obstacle self.check_obstacles() File "/home/carter/Dropbox/Robits/SC2/src/scoot/src/Driver.py", line 182, in __check_obstacles self._stop_now(MoveResult.OBSTACLE_LASER) File "/home/carter/Dropbox/Robits/SC2/src/scoot/src/Driver.py", line 121, in _stop_now self.drive(0, 0, State.DRIVE_MODE_STOP) File "/home/carter/Dropbox/Robits/SC2/src/scoot/src/Driver.py", line 203, in drive self.brakeService(False) #brakes off File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 442, in call__ return self.call(*args, **kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 532, in call raise ServiceException("transport error completing service call: %s"%(str(e))) ServiceException: transport error completing service call: unable to receive data from sender, check sender's logs for details

Carter90 commented 4 years ago

FYI All the brake code is now broken

Response to competitor ticket 203, altered the rover brake service to parse a float64 that represents Nm/rad (we think) of braking torque. The previous brake service that uses a boolean is now deprecated.