ft24_control/README.md

29 lines
920 B
Markdown
Raw Permalink Normal View History

2023-12-02 19:46:12 +01:00
# Temporary FT24 control repo
2023-12-02 19:47:54 +01:00
## Initial setup
To install all necessary dependencies, run:
```
rosdep install --from-paths src -y --ignore-src
```
2023-12-02 19:53:14 +01:00
Then build this package via the normal ROS2 build process:
```
colcon build --symlink-install
source install/setup.bash
```
2023-12-02 19:46:12 +01:00
## Simulation Start
For the Gazebo simulation, run:
```
ros2 launch ft24_control launch_sim.py
2023-12-02 19:50:54 +01:00
```
2023-12-02 19:56:08 +01:00
You can control the car with the keyboard by publishing Twist commands by opening a separate terminal and running:
2023-12-02 19:50:54 +01:00
```
ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args -r /cmd_vel:=/ackermann_steering_controller/reference_unstamped
2023-12-02 19:53:14 +01:00
```
## Robot Control
The robot control is implemented in the `ft24_control` package and can be launched with \
`ros2 launch ft24_control launch_robot.py`.\
This launch file brings up the `ros2_control`-based nodes that serve as the interface between the physical robot and the ROS2 software stack.