rosserial VS rclcpp

Compare rosserial vs rclcpp and see what are their differences.

rosserial

A ROS client library for small, embedded devices, such as Arduino. See: http://wiki.ros.org/rosserial (by ros-drivers)

rclcpp

rclcpp (ROS Client Library for C++) (by ros2)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
rosserial rclcpp
3 4
501 489
0.6% 1.8%
0.0 9.1
7 days ago 6 days ago
C++ C++
- Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rosserial

Posts with mentions or reviews of rosserial. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-17.
  • What did your first few open-source contributions look like?
    1 project | /r/learnprogramming | 23 Aug 2022
  • RADU: Motor Controller Software for Arduino and Raspberry Pico
    9 projects | dev.to | 17 Apr 2022
    A core package of ROS1 is the Rosserial. It supports several concrete microcontrollers, including the Arduino, STM32, Teensy. Effectively, this package is a set of C/C++ headers that you incorporate in your microcontroller code. Then, you can directly receive and send ROS messages using the imported ROS message format. The receiver, e.g. your single board computer, needs to implement a ROS server. Here, you can use either C++ or Python. There are several examples in the Github repository. I also recommend a great blog article about connecting ROS to Arduino with L298D to directly convert TWIST messages to motor controller PWMs.
  • rosserial +platformio+ esc-BG431
    2 projects | /r/ROS | 23 Mar 2021
    3 - On your ros linux PC, you can either download Rosserial (ex. sudo apt install os-melodic-rosserial-arduino), or build rosserial from source (https://github.com/ros-drivers/rosserial). Either way, you'll have a tool that can generate the Arduino side library for you (it will generate headers for all current messages/services... including your custom ones). For example:

rclcpp

Posts with mentions or reviews of rclcpp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-06.
  • How to use various QoS settings in ros2 used in moveit software?
    1 project | /r/ROS | 8 Apr 2023
    I think there's an overload of rclcpp::action::create_client that will accept an rcl_action_client_options_t (see here https://github.com/ros2/rclcpp/pull/1133/files) but it looks like MoveGroupInterface doesn't pass anything in when it creates the action clients:
  • Making the jump to ROS2
    2 projects | /r/ROS | 6 Nov 2022
    So one of the bigger issues I've encountered is that re-entrant services can break with the multi-threaded executor https://github.com/ros2/rclcpp/issues/1212 Services in ROS2 by default are not reentrant meaning they need to be called asynchronously. Since my team was porting ROS1 nodes over we wanted to keep the old blocking service call behavior in ROS2 to avoid changing decision logic. Unfortunately, we found out that this can cause the node to crash per the issue above. The fix for that issue was implemented in Humble irc, but can't be ported back to foxy. That's one specific example, but we've seen a few other issues like that as well.
  • RADU: Motor Controller Software for Arduino and Raspberry Pico
    9 projects | dev.to | 17 Apr 2022
    Alternatively, you can use the default client libraries like rclpy or rclcpp for writing custom code that reads and writes ROS2 messages.
  • Nix is the ultimate DevOps toolkit
    21 projects | news.ycombinator.com | 9 Apr 2021
    Thanks for the response!

    > This is difficult to answer without knowing more details.

    The situation specifically is the ROS ecosystem, where metadata is managed in these package.xml files:

    https://github.com/ros2/rclcpp/blob/master/rclcpp/package.xm...

    The federated nature of the ecosystem has led to a culture where it's very normal to be building dozens of these at once, in the same workspace together, often from multiple repos (the repo above has four in it). So there are several build tools which automate the work of examining a source workspace and building all the packages within it in the correct topological order, respecting build_depend tags. The newest of these tools (colcon) has actually made the package.xml optional in many cases, as it can examine CMakelists, setup.py, BUILD, etc, and discover for itself what the dependencies are.

    Your "distribution" of ROS is formed by listing all the packages and repos in this big file, for which there is other tooling to manage pulling dependency sources, whatever: https://github.com/ros/rosdistro/blob/master/foxy/distributi...

    Anyway, so the existing ROS/nix efforts (1) seem to basically consume all of this package/distribution metadata at once and generate a giant parallel structure of nix definitions (eg https://github.com/lopsided98/nix-ros-overlay/blob/master/di...), which I fear would be completely opaque to users and any system which required everyone to leave behind these existing workflows would be an immediate non-starter.

    I think the ideal scenario (and what it would look like if I built this myself based on debs) would be that you could source the "base" workspace as usual (enter the nix-shell?), and check out source, build packages as usual with colcon, the usual workspace-building tool, but there'd be an extra plugin/verb/flag for it, which would make it build each package as a nix package instead of into the usual installspace. The verb would generate the nix definitions on the fly, and probably handle the invocation and build-parallelism side of it as well.

    [1]: https://github.com/acowley/ros2nix, https://github.com/lopsided98/nix-ros-overlay

What are some alternatives?

When comparing rosserial and rclcpp you can also consider the following projects:

micro_ros_arduino - micro-ROS library for Arduino

Arduino-FOC - Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library

robotnix - Build Android (AOSP) using Nix [maintainer=@danielfullmer,@Atemu]

ros2_serial_example

ros2arduino - This library helps the Arduino board communicate with the ROS2 using XRCE-DDS.

nix-1p - A (more or less) one page introduction to Nix, the language.

Micro-XRCE-DDS - An XRCE DDS implementation. Looking for commercial support? Contact [email protected]

rclpy - rclpy (ROS Client Library for Python)

u2if - USB to interfaces implementing MicroPython "machine" module functionalities on a computer.