Using the ROS Code API
API Under Development
The ROS Code 2.0 API is currently under development.
Usage In The Commandline
:: This is what you would enter into a batchfile (Windows Terminal - Cmd) to use ROS Code :: You may need to tinker this to work with your terminal :: Navigate to the source code directory cd src :: Run the compiler with test.ros as input python run-file.py test.ros
Usage In Python
# Ensure you are running this inside the source code directory (src) of the project # Import the ROS Code python api and rename it to runcode from rospyapi import compilefile as runcode # Execute the ROS Code file runcode("test.ros")