You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8c55dcc
Browse filesBrowse the repository at this point in the historyBrowse files
Prepared new structure of programming rcl and rclc tutorial. (#148)
* Prepared structure of 'Programming with rcl and rclc' tutorial for new content.
Signed-off-by: Ralph Lange <ralph.lange@de.bosch.com>
* Added intro to 'Programming with rcl and rclc' tutorial.
* Added section on creating a node in 'Programming with rcl and rclc' tutorial.
Signed-off-by: Ralph Lange <ralph.lange@de.bosch.com>
* Improved intro of 'Programming with rcl and rclc' tutorial and added link to rclc repo.
Signed-off-by: Ralph Lange <ralph.lange@de.bosch.com>
In this tutorial, you'll learn the basics of the micro-ROS C API. The major concepts (publishers, subscriptions, services,timers, ...) are identical with ROS 2. They even rely on the *same* implementation, as the micro-ROS C API is based on the ROS 2 client support library (rcl), enriched with a set of convenience functions by the package [rclc](https://github.com/micro-ROS/rclc/). That is, rclc does not add a new layer of types on top of rcl (like rclcpp and rclpy do) but only provides functions that ease the programming with the rcl types. New types are introduced only for concepts that are missing in rcl, such as the concept of an executor.
7
+
8
+
*[Creating a node](#node)
9
+
*[Publishers and subscriptions](#pub_sub)
10
+
*[Services](#services)
11
+
*[Timers](#timers)
12
+
*[Rclc Executor](#rclc_executor)
13
+
14
+
15
+
## <aname="node"/>Creating a Node
16
+
17
+
To simplify the creation of a node with rcl, rclc provides two functions `rclc_support_init(..)` and `rclc_node_init_default(..)` in [rclc/init.h](https://github.com/micro-ROS/rclc/blob/master/rclc/include/rclc/init.h) and [rclc/node.h](https://github.com/micro-ROS/rclc/blob/master/rclc/include/rclc/node.h), respectively. The first lines of the main function of a micro-ROS programm are:
ROS 2 services is another communication mechanism between nodes. Services implement a client-server paradigm based on ROS 2 messages and types. Further information about ROS 2 services can be found [here](https://index.ros.org/doc/ros2/Tutorials/Services/Understanding-ROS2-Services/)
0 commit comments