Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS2 - Galactic devel #16

Open
wants to merge 23 commits into
base: FW2.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
16702a0
re-organize the package: shoter package name, add support for differe…
DoanNguyenTrong Jan 11, 2022
dc10e4d
add power_cmd_callback & fix linking issues
DoanNguyenTrong Jan 11, 2022
c47ac36
fix left right cmd
DoanNguyenTrong Jan 11, 2022
aa7aa38
clean redundant
DoanNguyenTrong Jan 11, 2022
9c7dde8
minor fix
DoanNguyenTrong Jan 11, 2022
72aecb0
fix node handle error
DoanNguyenTrong Jan 12, 2022
690ff21
clean redundant
DoanNguyenTrong Jan 12, 2022
0e1f1e7
Merge branch 'FW2.1' of https://github.com/DoanNguyenTrong/ROS-Driver…
DoanNguyenTrong Jan 12, 2022
fe74b05
use ros Timer to support multiple query frequencies
DoanNguyenTrong Jan 12, 2022
5b8d988
minor
DoanNguyenTrong Jan 12, 2022
df33dce
minor
DoanNguyenTrong Jan 12, 2022
9ad5822
re-organize .h and .cpp
DoanNguyenTrong Jan 13, 2022
ac43b51
fix query data, worked with single freq.
DoanNguyenTrong Jan 14, 2022
05178c9
update readme
DoanNguyenTrong Jan 14, 2022
98b0516
clean multiple query rates, add timestamp to channel msg, make publis…
DoanNguyenTrong Jan 14, 2022
ff02797
update readme
DoanNguyenTrong Jan 14, 2022
f60bb56
fix logic bug, add mutex to data query, minor
DoanNguyenTrong Jan 14, 2022
b24a720
modifying diff_odom
DoanNguyenTrong Jan 15, 2022
cb0797e
modified diff_odom code, have not tested yet
DoanNguyenTrong Jan 17, 2022
1f27ac4
galactic initial port
DoanNguyenTrong Jan 29, 2022
8534086
fixed ros2 issues, serial & ros2 problem exists
DoanNguyenTrong Jan 29, 2022
8c5faca
worked & tested on xdc2460
DoanNguyenTrong Feb 2, 2022
44bf62a
merge fixes from FW2.1 branch
DoanNguyenTrong Feb 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
40 changes: 26 additions & 14 deletions ROS-Driver-Update/README.md → README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
# ROS-Driver
# Quick Start Guide

## Introduction
**From Roboteq**

```
Note*
-This ROS driver only supports firmware version 2.0 or 2.0+.
-You can check your firmware version from Roborun+ console tab by querying - "?fid".
-If firmware is not the latest one then please update it with the latest one available on Roboteq website
or contact "techsupport.roboteq@mail.nidec.com".
```
This repository contains the ROS driver for Roboteq controllers. The package requires ROS system to be installed properly to your system and proper connection of Roboteq controller. For detailed controller setup instructions, please refer to our documentation [here](https://www.roboteq.com/index.php/docman/motor-controllers-documents-and-files/documentation/user-manual/272-roboteq-controllers-user-manual-v17/file).

First, clone this repository to catkin_ws/src
```
git clone https://github.com/Roboteq-Inc/ROS-Driver.git
```

The `Roboteq motor controller driver` is the package for the Roboteq ROS-driver. Make sure not to change package name as it will change the definition in the Cmake and Package files. Open new terminal and copy these steps -
This repository contains the ROS driver for Roboteq controllers. The package requires ROS system to be installed properly to your system and proper connection of Roboteq controller. For detailed controller setup instructions, please refer to our documentation [here (link died)](?).

```
cd catkin_ws/
source devel/setup.bash
roslaunch roboteq_motor_controller_driver driver.launch
```
**Roboteq CLAIMED!!!**

The roboteq driver is designed to be dynamic and users can publish the controller queries as per their requirements. The publishing queries is not limited to any value. By default total 9 queries are published by launching this driver. Users can change or add queries in configuration file. For that go to config/query.yaml

Expand All @@ -47,3 +39,23 @@ queryG:
# status_flag : ?FS
# firmware_id : ?FID Users can add queries which do not require channel number under queryG tab.
```

**FACTS:**
- It originally worked at a fixed rate of 5 Hz while querying system's states. I did **major** mofifications in this work, making it work at a frequency you want to.
- They did also specified 3 separate query frequencies in [the config file](config/query.yaml): `frequencyH`, `frequencyL`, and `frequencyG`. However, it's not the case (or quite complicated). Here in this work, I cleaned all of it and only keep a default `frequency` for all queries. It's sufficient for me, and hopefully for you too.
- I only used the `driver.launch` for now. So `diff_odom` is kept as original. Later, I might make it works, but probably by modifying the `roboteq_controller_node`, not putting in a separated file to make it a little bit efficent.


**Note**: This package is tested on XDC2460. In general, it uses serial communication so feel free to test it on your roboteq device. Please let me know it you do so, whether it works, any issues. Thank you.



## Installation
```bash
cd YOUR_WS/src/
git clone https://github.com/DoanNguyenTrong/roboteq_controller_ros.git
cd YOUR_WS
colcon build --packages-select roboteq_controller
. install/setup.bash
ros2 launch roboteq_controller roboteq_launch.py
```
273 changes: 0 additions & 273 deletions ROS-Driver-Update/roboteq_motor_controller_driver/CMakeLists.txt

This file was deleted.

This file was deleted.

Loading