Skip to content
Snippets Groups Projects
Commit 8776c8d9 authored by Charles JAVERLIAT's avatar Charles JAVERLIAT
Browse files

Deleted README.md

parent 7f329149
No related branches found
No related tags found
No related merge requests found
# Motor control card driver
Apply motor regulation on left and right motor using a PID regulator.
Setpoint are read from the `/cmd_vel` topic.
This node also send back odometry and transform of the `base_link`.
## Setup repository
This repository uses git submodules. To clone this repository with all its submodules, proceed like so:
```sh
git clone --recurse-submodules -j8 https://gitlab.clubelek.fr/cdf2020/microcontrollers/motors-control-card/motors-control-card-driver.git
```
## Update submodules
If you want to fetch the changes for the submodules, use the command `git submodule update`
## Prerequisites
### ROS Install
- Install a version of ROS1, see [ROS installation](http://wiki.ros.org/ROS/Installation).
- Install rosserial-python for your ROS distribution, for example:
```sh
sudo apt-get install ros-noetic-rossserial-python
```
### Hardware preparation
Add the rules to read/write to the STM32 Nucleo F303k8
```sh
sudo cp 99-stm-nucleo.rules /etc/udev/rules.d/
```
## How to run
```sh
pio run --target upload
```
In one terminal, source ROS setup file and run the roscore:
```sh
source /opt/ros/noetic/setup.bash
roscore
```
In another terminal, run rosserial-python to handle the STM32 node:
```sh
source /opt/ros/noetic/setup.bash
rosrun rosserial_python serial_node.py /dev/ttyACM0
```
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment