A ROS 2 client library for the Rockstar programming language.
So we can all be rockstar robot developers 🧑🎤 🤖
- Create ROS nodes
- Create ROS publishers for type
std_msgs/msg/String
- Publish string data
- Create ROS subscriptions for type
std_msgs/msg/String
- Create ROS timers
-
Install ROS 2 (Foxy or newer)
-
Clone this repository
git clone https://github.com/jacobperron/rclrockstar.git
-
Install Python dependencies with Poetry
pip3 install poetry cd rclrockstar poetry install
In the root of the repository,
poetry run ros_rocks examples/ros.rock
For more info,
poetry run ros_rocks --help
Here's an example Rockstar program that creates a ROS node, a publisher, and publishes data every 1 second in an infinite loop:
My turtle is "gone"
Put ROS taking my turtle into jail
My turtle is "blue"
Let somebody be ROS wants jail and my turtle
My turtle is fine without you
My love is "awesome"
While ok
Shout "Hello ROS!"
ROS wants somebody, my love
ROS taking my turtle
This project is licensed under the MIT License. See the full license here.
- Thanks to yyyyyyyan for
rockstar-py
, which is where the transpilation code was copied from.