Skip to content

VittorioSanchez/siecCAN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

siecCAN

Scripts that implements communication between the CAN bus and ROS on the Raspberry Pi.

The script listener.py is the one that manages all this.

The other scripts are used for testing, when listener.py is running:

  • data_log.py: allows to save data in files in order to plot it on Excel afterwards
  • publisher_direction.py: script used to send angular speed commands
  • publisher_speed.py: script used to send speed commands

You need Raspbian and ROS Melodic installed on a Raspberry Pi 3 at least.

How to launch the project properly

  1. Launch the car

  2. Initialise CAN bus

sudo /sbin/ip link set can0 up type can bitrate 400000
  1. Launch ROS master
roscore
  1. Launch rosbridge_server
roslaunch rosbridge_server rosbridge_websocket.launch
  1. Launch listener.py

  2. If the HMI is installed (see hmi repo) you can access it typing localhost in your browser, else you can use the scripts named below to send commands

Note: that's the painful way, see siec_roslaunch repo to use an easier method.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.4%
  • CMake 15.6%