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

Runtime Error #2

Open
droter opened this issue Sep 25, 2015 · 2 comments
Open

Runtime Error #2

droter opened this issue Sep 25, 2015 · 2 comments
Assignees

Comments

@droter
Copy link

droter commented Sep 25, 2015

Hi,

I am getting this error when launching the package:
core service [/rosout] found
process[can/listener-1]: started with pid [20476]
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in *bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, _self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/python_can-1.4-py2.7.egg/can/notifier.py", line 35, in rx_thread
callback(msg)
File "/usr/local/lib/python2.7/dist-packages/python_can-1.4-py2.7.egg/can/CAN.py", line 42, in __call

return self.on_message_received(msg)
File "/home/matt/catkin_ws/src/canbus_interface/src/canbus_listener.py", line 23, in on_message_received
self.canpub.publish(canframe)
AttributeError: 'canbus_ros_interface' object has no attribute 'canpub'

/home/matt/catkin_ws/src/canbus_interface/src/canbus_listener.py:13: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers for more information.
self.canpub = rospy.Publisher('data', CanFrame)

Matt

@juancamilog juancamilog self-assigned this Nov 16, 2015
@juancamilog
Copy link
Owner

Hi Matt,

I haven't touched this code on while. Sorry for the extremely late response. I will try to get some work on this in the next few days

@hashim19
Copy link

hashim19 commented Mar 7, 2017

Hi Matt,
Have you tried this with USB to CAN adapter ?

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

3 participants