Ask Your Question

Revision history [back]

You should definitely add a code snippet...

However, if I'm correctly understanding you have a problem with the following code:

class MyNode : public rclcpp::Node
{
    MyNode() : Node("my_node")
    {
        auto broadcaster = std::make_shared<tf2_ros::TransformBroadcaster>(this);
    }
};

If that is the case, a fix has been recently merged to master. https://github.com/ros2/rclcpp/pull/821#issuecomment-523157001

Build the ROS2 master instead of Dashing in order to use it.