Git Product home page Git Product logo

canbus_interface's People

Contributors

juancamilog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

canbus_interface's Issues

Runtime Error

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

CanBUS Device

Hi,

Do you recommend a specific can dongle to use with this package?

Thanks,

Matt

When I lost recv , I can't send any message anymore!

Holle:
my code:
def SendBack(data):
msg = can.Message(arbitration_id=0x000601, data = data, extended_id=False)
bus.send(msg)
bus.flush_tx_buffer()
time.sleep(0.001)
try:
Ans = str(bus.recv(timeout=1.0))
except:
print("Error")
return(None)
if(len(Ans) > 10):
return("success")
else:
return(None)
My question is when it lost recv then i cant send any new message.
it can't send any data and any response.
I need to restart Raspberry Pi then CAN bus will be normal.
Please help me to fix this question.
Thank you

Can I use this package in other platform rather than BBB?

Hi, Thank you write this canbus_interface packag! I want to use your package in a RK3288 Hardware platform . But there is not CANbus on this platform. I think about using SPI to CAN chip like MCP2515. Do you think I can use it? Or do you have some suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.