Giter Site home page Giter Site logo

ros_can_driver's Introduction

使用: 1.给外界USB转can设备权限 2.查看can设备id,'can0' 3.修改run.sh文件中对应的can设备id和波特率,运行该脚本,'./run.sh' 4.检查硬件设备连接,启动ros节点 5.'roslaunch decodeframe decode_frame_can_node.launch‘

注意: decodeframe: 下一个can驱动!!!!

ros_canopen: 1.修改can id 1.1 源码修改socketcan_to_topic_node.cpptopic_to_socketcan_node.cpp两个文件中第45行的can id,如can0 1.2 laucnh文件中修改rosparam中的can_devicevalue

<node pkg="socketcan_bridge" name="topic_to_socketcan_node" type="topic_to_socketcan_node" output="screen">
 	<param name="can_device" value="can0"/>
</node>

<node pkg="socketcan_bridge" name="socketcan_to_topic_node" type="socketcan_to_topic_node" output="screen">
    <param name="can_device" value="can0"/>
</node>

2.修改topic 2.1 laucnh文件重映射topic名称

<node pkg="socketcan_bridge" name="topic_to_socketcan_node" type="topic_to_socketcan_node" output="screen">
    <remap from="received_messages" to="/bigrobot2/received_messages"/>
</node>

<node pkg="socketcan_bridge" name="socketcan_to_topic_node" type="socketcan_to_topic_node" output="screen">
    <remap from="sent_messages" to="/bigrobot2/sent_messages"/>
</node>

ros_can_driver's People

Contributors

wanghuohuo0716 avatar

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.