Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deadreckoning div by zero #84

Open
CourchesneA opened this issue Dec 7, 2020 · 1 comment
Open

Deadreckoning div by zero #84

CourchesneA opened this issue Dec 7, 2020 · 1 comment

Comments

@CourchesneA
Copy link
Collaborator

When running the exercises workflow in the simulator we get a division by zero in the deadreckoning node:

[ERROR] [1607369074.967796]: bad callback: <bound method DTSubscriber._monitored_callback of <duckietown.dtros.dtsubscriber.DTSubscriber object at 0x7fa52ed23d60>>
Traceback (most recent call last):
  File "/opt/ros/noetic/lib/python3/dist-packages/rospy/topics.py", line 750, in _invoke_callback
    cb(msg)
  File "/code/catkin_ws/src/dt-ros-commons/packages/duckietown/include/duckietown/dtros/dtsubscriber.py", line 131, in _monitored_callback
    out = self._user_callback(*args, **kwargs)
  File "/opt/ros/noetic/lib/python3/dist-packages/message_filters/__init__.py", line 76, in callback
    self.signalMessage(msg)
  File "/opt/ros/noetic/lib/python3/dist-packages/message_filters/__init__.py", line 58, in signalMessage
    cb(*(msg + args))
  File "/opt/ros/noetic/lib/python3/dist-packages/message_filters/__init__.py", line 330, in add
    self.signalMessage(*msgs)
  File "/opt/ros/noetic/lib/python3/dist-packages/message_filters/__init__.py", line 58, in signalMessage
    cb(*(msg + args))
  File "/code/catkin_ws/src/dt-core/packages/deadreckoning/src/deadreckoning_node.py", line 136, in cb_ts_encoders
    self.tv = distance / dt
ZeroDivisionError: float division by zero
@liampaull
Copy link
Member

what is this deadreckoning node?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants