juancamilog / canbus_interface

ROS interface to a canbus using socketcan and python-can
29 stars 15 forks source link

Runtime Error #2

Open droter opened 8 years ago

droter commented 8 years ago

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 commented 8 years ago

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 commented 7 years ago

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