Questions tagged [ros2]

Please ask ROS 2 related questions on https://robotics.stackexchange.com from now on.

Please ask ROS 2 related questions on https://robotics.stackexchange.com from now on. It is now the official Q&A forum for ROS after answers.ros.org has been migrated to it.

The Robot Operating System (ROS) is a set of software libraries and tools that help you build robot applications. From drivers to state-of-the-art algorithms, and with powerful developer tools, ROS has what you need for your next robotics project. And it's all open source.

ROS 2 is a new version of that is currently under development.

Resources:

449 questions
2
votes
1 answer

I am trying to have stable flight with px4 and ros2 offboard control

Hello guys I have a offboard code which give about 50 setpoints to drone. It draws spiral with that setpoints. My problem is I couldnt get smooth travel. In every setpoint drone gives a high roll or pitch instant and then floats to the next…
Ege Alşan
  • 21
  • 3
2
votes
1 answer

Confusion on deploying Drake based software to a real robot

I have limited experience in drake and currently trying to learn and implement some simple algorithms. The code I have is based on an example from the Underactuated Robotics course by R. Tedrake. The code is a slightly modified version of this…
fet.atas
  • 303
  • 2
  • 10
2
votes
3 answers

Can see topic when using ros2 topic list, but can't echo it over the network?

I have two computers(Ubuntu 20.04) in the same network with ROS_DOMAIN_ID=1 and I have a topic called cloud which is a pointcloud from a lidar sensor. The driver is running on the PC=A and I want to show the clouds on PC=B. Now when I ros2 topic…
Hakaishin
  • 2,550
  • 3
  • 27
  • 45
2
votes
2 answers

Low frame rate when publishing image messages in ros2

I have a ROS node that gets image frames from a camera sensor and publishes image messages to a topic of type sensor_msgs::image. I run a ros2 executable which deploys the node. I notice that the rate at which the camera sensor provides the frames…
2
votes
0 answers

Publishing robot_description for multiple robots

Hello to everyone, I am struggling a bit with my gazebo project. Please any kind of help would be welcomed. What I am trying to do: I want to have multiple robot_descriptions as publisher for multiple robots of the same type. My goal is to visualize…
2
votes
0 answers

Prevent ROS2 Timer Callback Queuing

ROS2 timer adds elements to the callback queue. In a single threaded (C++) node, when a timer callback execution time exceeds the timer period, the spinner would be flooded with timer callbacks. This will cause a degradation in node responsivity to…
Max Zemsky
  • 162
  • 1
  • 2
  • 15
2
votes
2 answers

ROS2 - check if a node is still alive

This question is similar to ROS - check if a node is still alive (@Potaito), but now this question is for ROS 2 (Foxy to be precise). To explain my problem in short. I'm trying to check if a client of another publisher node is still alive.…
Xander
  • 418
  • 2
  • 12
2
votes
1 answer

The BoostRoot points to "" empty directory, where do I change its value to set a permanent directory?

So I could not compile the c++ code with this in its CMakeList.txt find_package(Boost REQUIRED COMPONENTS program_options) due to error output Imported target "Boost::program_options" includes non-existent path "/include" in its…
2
votes
1 answer

Question regarding the use of std::bind in ROS2 tutorial

I am fairly new to C++ and I have a question regarding practices of std::bind. The following snippet is copied from this tutorial on the ROS2 website. The code creates a class where the timer_ field hosts a timer that is created using…
Donglin Wang
  • 23
  • 1
  • 4
2
votes
3 answers

How to use lambda intead of std::bind in create_subscription method in ROS2

I am creating a small euclidean clustering node for the point cloud, utilizing PCL's implementation of the KD tree. Currently, my subscriber definition looks like this, ClusteringNode::ClusteringNode(const rclcpp::NodeOptions &options) :…
pandarulez
  • 91
  • 11
2
votes
0 answers

Yocto Bitbake fails on ros-image-turtlebot3-core.bb:do_rootfs due to missing rpm

I like to assemble a Linux image for RaspberryPi with ROS2 and Turtlebot3 stuff. Yocto environment is already set up and worked fine until end of last year. Image file was successfully built and started as expected at target system. My new…
rrd1
  • 21
  • 2
2
votes
1 answer

ros2 pub/sub custom message through ros2-web-bridge to client app

I want to publish ros2 custom message through ros2-web-bridge to react app. In react i have subscribed to published custom message. ros2-web-bridge is running on port ws://localhost:9090. I have created the custom message interface on ros2. //…
2
votes
1 answer

expected ',' or '}' before '___attribute__', #define RMW_DECLARE_DEPRECATED(name, msg) name __attribute__((deprecated(msg)))

ros2 rolling installation returns this error on raspberry pi 3b https://github.com/ros2/rmw/blob/master/rmw/include/rmw/types.h#L418 I believe the 418th line is wrong but I don't know how to fix it image of error #ifndef _WIN32 #define…
2
votes
0 answers

Redirect/forward ROS logs to journald

I have a C/C++ application which runs by ROS2 eloquent with different nodes each of which logs some information under .ros/log. My question is is there any way to redirect/forward ROS logs to journald service of Linux (so that ros log files under…
Keivan
  • 1,300
  • 1
  • 16
  • 29
2
votes
1 answer

Looking for cv_bridge example in C++ for ROS2

I have been trying to find some sample codes in C++ to gain insight on how to use cv_bridge for ROS2 however the only examples i'm getting are the ones coming from ROS1. Given that it uses sharedPtr instead of the default ones. Can anyone enlighten…
Confused One
  • 21
  • 1
  • 2
1 2
3
29 30