Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

l-systems

  • Michael Jenz
  • January 2025
output.online-video-cutter.com.1.mp4

Overview

This package is an implementation of l-systems in ros2 kilted using rclcpp. This project served as a way for me to get comfortable with the cpp api but also resulted in some interesting service client interaction.

The implementation shown above has the turtlesim robot drawing a fractal tree using two rules. It is pretty amazing how with such simple rules you can create a life-like structure.

Rules:

  1. X --> F+[[X]-X]-F[-FX]+X
  2. F -->> FF

Each of the above symbols defines an action for the turtlesim bot.

Actions:

  1. "X" means stay in that position
  2. "F" means move forward
  3. "-" means turn right
  4. "+" means turn left
  5. "[" saves the current position and angle
  6. "]" restores the saved position and angle

Implementing the iteration of these rules to build a set of directions for the robot, and then executing these actions was a great learning experience for me in cpp. Looking forward to getting more expereince with ros2 kilted and rclcpp!

How to use

Build the project, source the workspace, and run the command ros2 launch turtle_control waypoint.launch.xml.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages