Skip to main content
3 votes
Accepted

The ROS build system is confusing

I agree the build ecosystem is quite confusing, let me see if I can answer your questions. Build tools coordinate a build between multiple packages, build systems build individual packages. I suggest ...
Jack's user avatar
  • 46
3 votes

Are ROS2 subscription callback arguments always pointers?

It doesn't 'have to be' but its generally good to have it that way. If you use smart pointers for the publication and subscription, then when using manual or dynamic composition with IPC enabled, then ...
Steve Macenski's user avatar
2 votes

ROS Installaion on Windows - Please provide credentials for: http://aka.ms/ros/public

Answering my own question - for anyone that stumbles on this problem.It appears that this was a temporary bug of some sort. It failed to work for a few days, then rectified on its own. ...
mediums's user avatar
  • 21
2 votes
Accepted

SLAM_TOOLBOX , topic /map is empty

I’ve solved the issue, and the map is now building correctly! The mistake was that I initially constructed the TF tree incorrectly. In my case, the ‘robot’ was the lidar itself, so I had two static ...
Ivan Mokiets's user avatar
2 votes

SLAM_TOOLBOX , topic /map is empty

Should I be sending data to the /map topic in some way, or should the SLAM Toolbox process the odometry and lidar data and publish to /map itself? No, SLAM publishes the ...
Steve Macenski's user avatar
2 votes
Accepted

How to Configure a PID controller Yaml file in ROS2_Control

See this section: You have to use type: pid_controller/PidController. (I have to admit, this could be documented clearer). ...
Christoph Froehlich's user avatar
2 votes
Accepted

What is the time base of ros2 loggers?

The logging output handler is called here and is passed a time variable now as an argument. now is initialized here by call of <...
JRTG's user avatar
  • 2,074
2 votes

Gazebo crashes immediately - Segmentation fault (Address not mapped to object [0x220])

It works using QT_QPA_PLATFORM=xcb gz sim
PrattPrakash's user avatar
2 votes

Is it ok to run a ros2 program without 'ros2 run'?

You can definitely run your ROS 2 executables without ros 2 run. But then you need to specify the path to the executable. With ...
Karl Damkjær Hansen's user avatar
2 votes

What is needed to compile a client using a service call?

You'll need to include: The .hpp generated from the .srv service definition (type of the service) The rclcpp.hpp to bring the service node features like "create_client" And don't forget to ...
PatoInso's user avatar
  • 104
2 votes

Is there any way to change the color of line (trajectory) that appears in the SLAM once the robot starts moving using ROS2 and Nav2?

I think you will find the answer here: rviz/DisplayTypes/Path Name Description Valid Values Default Color The color of the line ([0-255], [0-255], [0-255]) (25, 255, 0) Alpha The amount of ...
Greenonline's user avatar
  • 1,591
1 vote
Accepted

Adding nodes at startup of Turtlebot4

There are two parts to the proper way to do this. The first is the actual changes themselves and the second is how/where you implement those changes. Before I talk about that, I want to talk about how ...
Hilary Luo's user avatar
1 vote

How to compile package located outside of docker image using docker-based ROS2

Docker allows to mount shared volumes that are visible both inside and outside the docker: docker run -it -v /host/directory:/container/directory image_name "...
Bourumir Wyngs's user avatar
1 vote

This->Now not returning sim time in ROS2 when playing bag file

In ROS1 there was a parameter server, but in ROS2 it's ever person for themselves, basically. The use_sim_time parameter is something that's set (or not) on a per-node basis. It could be that all the ...
Chuck's user avatar
  • 15.9k
1 vote

Bias Omni Navigation Towards Forward Movement

See the DWB / MPPI critics, they both have forward preferenced critics built in.
Steve Macenski's user avatar
1 vote
Accepted

ROS2 services: do they block server node execution?

Yes, by default callbacks are blocking. Read up on executors and callback groups for more info. Using a multithreaded executor might be a solution. See this previous answer for references.
JRTG's user avatar
  • 2,074
1 vote

Rviz2 display nothing after window minimized

I think I fixed it. I follow this blog upgrade my mesa. I found it does not solve the isssue, but after I remove it reinstall the original mesa, the issue solved. It must be some problem due to mesa ...
佘思稹's user avatar
1 vote

I am trying to create map using odometry and display in rviz2. I am not able to create map as my scan topic doesn't have any publisher

There is no publisher to the scan topic, so the callback to generate the map is never called. Have you run the node to read the LiDAR data on your robot? Depending on your lidar, launching the ROS ...
Sriram's user avatar
  • 58
1 vote
Accepted

PointCloud2 xarco implementation

Try velodyne plugin. If you want to use gpu, set ray_type to gpu_ray, if not, set it to ray. ...
fatemeh_p's user avatar
  • 293
1 vote

ROS2 DDS behavior when network is saturated

In my experience, when you are getting messages initially and then no longer get any successful messages after some time, the problem is the ipv4 frag buffer settings on the receiving end. This ...
Hilary Luo's user avatar
1 vote
Accepted

Tf2 dynamic broadcaster (w/ Gazebo)

Have a look at the time stamps in the tf: some have sim_time, but the new_frame has the ros-time. Set the use_sim_time parameter of your node, and ...
Christoph Froehlich's user avatar
1 vote
Accepted

Undesired Transforms not available in RVIZ2

The issue is I kept all the values in axis tag under joint tag as zero even though its a joint. To correct the issue, just replace the value of axis with the direction in which you want the joint(...
Pratham's user avatar
  • 17
1 vote
Accepted

Package not found after sourcing with ROS 2 Humble

Since you want to create a “ament CMake” package (use of ament_cmake with ament_package() in CMakeLists.txt) you also need to ...
Bi0T1N's user avatar
  • 468
1 vote

Package not found after sourcing with ROS 2 Humble

Solution from Bi0T1N's comment solved the problem. Build type was lacking in the package.xml.
pdaranda661's user avatar
1 vote

How to configure Colcon?

There is a colcon-defaults package that allows you to set the default configuration for colcon. This is the official documentation: https://colcon.readthedocs.io/en/released/user/configuration.html#...
tiryoh's user avatar
  • 11
1 vote

Alternative to tf2_sensor_msgs.do_transform_cloud in ROS 2[Humble] for Point Cloud Transformation?

I could not find one but it is not too bad to write yourself. Using numpy and scipy you can do something like. ...
Tariq Soliman's user avatar
1 vote

Saved map fro Slam_toolbox won't show up in RViz

If you are using humble the command argument is slam_params_file (not params_file). ...
j-grg's user avatar
  • 11
1 vote

ros2 interface show throw exception "InvalidResourceName"

Thanks for posting this question. I suspect that this error is due to the nested structure of your directory for msg. Try the following directory structure (while also updating your CMakeLists.txt ...
Peter David Fagan's user avatar
1 vote

error while using diff_drive plugin

The docs you are using might be for a newer version of gazebo. I was getting the same joint errors when using camelCase tags as you have shown. This file works for me: ...
Michael Ribbons's user avatar
1 vote

Failed to fetch http://packages.ros.org/ros2 (404 not found)

I also had this problem, and refined the solution shared by Gustavo Rezende to only delete the necessary files: ...
Matt Ryall's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible