You're reading the documentation for a version of ROS 2 that has reached its EOL (end-of-life), and is no longer officially supported. If you want up-to-date information, please have a look at Humble.
ROS 2 Eloquent Elusor (codename ‘eloquent’; November 22nd, 2019)
Table of Contents
Eloquent Elusor is the fifth release of ROS 2.
Eloquent Elusor is primarily supported on the following platforms:
Tier 1 platforms:
Ubuntu 18.04 (Bionic):
Mac macOS 10.14 (Mojave)
Windows 10 (Visual Studio 2019)
Tier 2 platforms:
Ubuntu 18.04 (Bionic):
Tier 3 platforms:
Debian Stretch (9):
OpenEmbedded Thud (2.6) / webOS OSE:
For more information about RMW implementations, compiler / interpreter versions, and system dependency versions see REP 2000.
A few features and improvements we would like to highlight:
Per-node logging - All stdout/stderr output from nodes are logged in ~/.ros
turtlesim (also backported to Dashing)
Environment variable ROS_LOCALHOST_ONLY to limit communication to localhost
MacOS Mojave Support
Tracing instrumentation for rcl and rclcpp
During the development the Eloquent meta ticket on GitHub contains an up-to-date state of the ongoing high level tasks as well as references specific tickets with more details.
geometry_msgs/msg/Quaternion.msg interface now default initializes to a valid quaternion, with the following values:
Here is the pull request for more detail: https://github.com/ros2/common_interfaces/pull/74
Static transform broadcasters and listeners now use QoS durability
transient_local on the
Similar to the latched setting in ROS 1, static transforms only need to be published once.
New listeners will receive transforms from all static broadcasters that are alive and have published before.
All publishers must be updated to use this durability setting or their messages won’t be received by transform listeners.
See this pull request for more detail: https://github.com/ros2/geometry2/pull/160
API Break with
Introduced in Dashing, the
get_actual_qos() method on the
SubscriptionBase previously returned an rmw type,
rmw_qos_profile_t, but that made it awkward to reuse with the creation of other entities.
Therefore it was updated to return a
Existing code will need to use the
rclcpp::QoS::get_rmw_qos_profile() method if the rmw profile is still required.
void my_func(const rmw_qos_profile_t & rmw_qos); /* Previously: */ // my_func(some_pub->get_actual_qos()); /* Now: */ my_func(some_pub->get_actual_qos()->get_rmw_qos_profile());
The rationale for breaking this directly rather than doing a tick-tock is that it is a new function and is expected to be used infrequently by users.
Also, since only the return type is changing, adding a new function with a different would be to only way to do a deprecation cycle and
get_actual_qos() is the most appropriate name, so we would be forced to pick a less obvious name for the method.
API Break with Publisher and Subscription Classes
In an effort to streamline the construction of Publishers and Subscriptions, the API of the constructors were changed.
It would be impossible to support a deprecation cycle, because the old signature takes an rcl type and the new one takes the
NodeBaseInterface type so that it can get additional information it now needs, and there’s no way to get the additional information needed from just the rcl type.
The new signature could possibly be backported if that would help contributors, but since the publishers and subscriptions are almost always created using the factory functions or some other higher level API, we do not expect this to be a problem for most users.
Please see the original pr for more detail and comment there if this causes issues:
Compiler warning about unused result of
Since Eloquent Patch Release 2 (2020-12-04)
Users should retain the handle returned by
rclcpp::Node::add_on_set_parameters_callback, otherwise their callback may be unregistered.
A warning has been added to help identify bugs where the returned handle is not used.
API Break Due to Addition of Publisher and Subscription Options
rmw_create_publisher() method had a new argument added of type
const rmw_publisher_options_t *.
This new structure holds options (beyond the typesupport, topic name, and QoS) for new publishers.
rmw_create_subscription() method had one argument removed,
bool ignore_local_publications, and replaced by the new options of type
const rmw_subscription_options_t *.
ignore_local_publications option was moved into the new
In both cases the new argument, which are pointers, may never be null, and so the rmw implementations should check to make sure the options are not null. Additionally, the options should be copied into the corresponding rmw structure.
See this pull request, and the associated pull requests for more details:
ros2msg and ros2srv deprecated
The CLI tools
ros2srv are deprecated.
They have been replaced by the tool
ros2interface, which also supports action and IDL interfaces.
You can run
ros2 interface --help for usage.
Service clients have been added to ros2node info.
As part of that change the Python function
has been renamed to
TF2 buffers now have to be given a timer interface.
If a timer interface is not given, an exception will be thrown.
tf = std::make_shared<tf2_ros::Buffer>(get_clock()); // The next two lines are new in Eloquent auto timer_interface = std::make_shared<tf2_ros::CreateTimerROS>( this->get_node_base_interface(), this->get_node_timers_interface()); tf->setCreateTimerInterface(timer_interface); // Pass the Buffer to the TransformListener as before transform_listener = std::make_shared<tf2_ros::TransformListener>(*tf);
ROS command line argument changes
To cope with an increasingly complex interface, with a now extended set of configuration options, ROS CLI syntax has been changed. As an example, a command line using Dashing syntax like:
ros2 run some_package some_node foo:=bar __params:=/path/to/params.yaml __log_level:=WARN --user-flag
is written using Eloquent (and onwards) syntax as:
ros2 run some_package some_node --ros-args --remap foo:=bar --params-file /path/to/params.yaml --log-level WARN -- --user-flag
This explicit syntax affords new features, like single parameter assignment
For further reference and rationale, check the ROS command line arguments design document.
Former syntax has been deprecated and is due for removal in the next release.
find_package(PCL)interferes with ROS interface generation. Workaround: invoke
rclcpp::Contextis not destroyed because of a reference cycle with
rclcpp::GraphListener. This causes a memory leak. A fix has not been backported because of the risk of breaking ABI.
A few milestones leading up to the release:
- Mon. Sep 30th (alpha)
First releases of core packages available. Testing can happen from now on (some features might not have landed yet).
- Fri. Oct 18th
API and feature freeze for core packages Only bug fix releases should be made after this point. New packages can be released independently.
- Thu. Oct 24th (beta)
Updated releases of core packages available. Additional testing of the latest features.
- Wed. Nov 13th (release candidate)
Updated releases of core packages available.
- Tue. Nov 19th
Freeze rosdistro. No PRs for Eloquent on the
rosdistrorepo will be merged (reopens after the release announcement).