New answers tagged

0 votes

How to Run ROS2 Humble natively on Beagle Bone Blue?

Install ROS 2 Humble in Docker - it will surprise you how easy 1_setup_docker_apt_repo.sh 2_install_docker_packages.sh 3_clone_ros_docker_images.sh 4_build_humble_desktop_container.sh ...
Cyclical Obsessive's user avatar
0 votes

Nav2 Stack's Behavior tree (BT.CPP) version

We use v3.8 in Nav2 since its been stable and v4 has been under active development and bug fixing the last few months. Things are largely stable now and we do plan to move to v4.4 in January-February ...
Steve Macenski's user avatar
1 vote

Is there a workaround to set QoS at launch time?

Actually, yes! The code just has to provide the QoS override as a valid option: ...
Steve Macenski's user avatar
1 vote

How can i show on my browser what i see on Rviz?

I assume it is not your intention to use third party tools but these worth giving a try: Foxglove webviz If you don't want to deal with these, then by using rosbridge_suite you can do so: ...
Alperen Keser's user avatar
0 votes

How can i show on my browser what i see on Rviz?

https://github.com/dheera/rosboard I have not tried this, but it could help.
billy's user avatar
  • 191
0 votes
Accepted

Who has gotten WiringPi working in a ROS 2 C++ node? Want to control GPIO on Raspberry Pi 4 running Ubuntu 22

Put the wiringPiSetup() inside main and before spinning the node (rclcpp::spin(node)). It ...
Yato's user avatar
  • 11
0 votes

How can i show on my browser what i see on Rviz?

I guess you are looking for something similar to the RobotWebTools I haven't used it with ROS 2 but with ROS 1 it was working well afaik.
aarsht7's user avatar
  • 36
2 votes
Accepted

Which ROS2 Distro? Iron or Humble?

Humble can be a better choice as it has LTS, there will be more stable package releases and more support on he core. Also you can discuss this type of topics at discourse.ros.org
aarsht7's user avatar
  • 36
0 votes

ROS2 data exchange over network

Source it : source export ROS_DOMAIN_ID = 1 (int unique num) save it and check ros2 topic list. if host 1 and host 2 exports same number. it shown the topic otherwise not shown.
Muthu kumar's user avatar
0 votes

Associate two executors for a single node

cbg_executor example is what you need. Please refer the example here, https://github.com/ros2/examples/tree/humble/rclcpp/executors/cbg_executor
Li Victor's user avatar
1 vote

DWB planner in Nav2 does not properly set scale for critics

I figured it out, it divides the critics (except for RotateToGoal and Oscillation) by 80.
Redstone's user avatar
0 votes
Accepted

octomap_msgs/conversions.h: No such file or directory

I'm not exactly sure of the solution to my problem, but I resolved it. The following is my current source code, CMakeList.txt and package.xml. octomap_publisher_node.cpp ...
Ajifoster3's user avatar
0 votes

irobot create3 topics not found after setup in macos multipass vm

Per the Network Reccommendations, Bridged Network is required: While many virtualization applications default to a "shared" or "NAT" network connection, this type of connection ...
Aaron Roller's user avatar
1 vote
Accepted

Got Pi5 w PiOS Bookworm, Want ROS 2 Humble Desktop Docker with Nav2 and more

You create a dockerfile to build your own docker image starting from the ROS 2 Humble container. Such a dockerfile could look something like this: ...
proan's user avatar
  • 121
0 votes
Accepted

Colcon build error : 0 packages finished

I solved this problem by uninstalling "Python 3.12, 64-bit version" which had been installed on my system because I found the CMake error refers to a Python 3.12 on my system and I didn't ...
Mary's user avatar
  • 1
1 vote

Confirm ROS2 (Humble) IMU node working correctly?

As given in this answer rqt_plot in ROS 2?, you can use rqt_plot in ROS1 or PlotJuggler https://plotjuggler.io in ROS2 to plot your vector components. You can also ...
proan's user avatar
  • 121
1 vote
Accepted

Confirm ROS2 (Humble) IMU node working correctly?

Seems that imu_tools has a RViz plugin that can be used to visualize the IMU topic: https://github.com/CCNYRoboticsLab/imu_tools
danzimmerman's user avatar
0 votes

Colcon build error : 0 packages finished

In your build error message, it looks like you're missing a Python package. I found this https://answers.ros.org/question/257757/importerror-no-module-named-em-error/, which seems to have multiple ...
proan's user avatar
  • 121
0 votes
Accepted

executable '[<launch.substitutions.text_substitution.TextSubstitution>]' not found on the PATH

The solution was that I had to install all the dependencies with rosdep. I forgot this step. Thank you @ChristophFroehlich Follow the tutorial on how to build the ros2 control demos:
Benno's user avatar
  • 1
0 votes

executable '[<launch.substitutions.text_substitution.TextSubstitution>]' not found on the PATH

Welcome at RSE. This is maybe the same issue as described here. On which platform have you installed humble, from source or binary? Have you sourced your humble distro like described here? Are launch ...
Christoph Froehlich's user avatar
0 votes

octomap_msgs/conversions.h: No such file or directory

According to this tutorial, your CMakeLists.txt file needs to specify that the compiler use version 14 of the c++ standard. https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Writing-A-...
Mike973's user avatar
  • 693
0 votes

Renaming odom frame on robot_localization

The EKF node is subscribed to the topic /odom, but you can remap the topic when you launch the node by adding the ...
proan's user avatar
  • 121
1 vote

Why TEB controller is not available in ros2 humble?

If you still like to work with TEB, you can clone "ros2-master" branch of teb_local_planner, and build it (I cloned teb_local_planner to the nav2_ws/src (workspace of navigation2)) git clone ...
user37402's user avatar
2 votes
Accepted

Model in gazebo moves violently, with JointTrajectoryController

The issue was with inertia. The inertia was too small and some values were negative. I increased inertia of all the links and it started behaving normally.
JesterHead77's user avatar
0 votes

NAV 2 - Human following with stereo camera

The issue is that human quickly disappears from the field of view of the camera and so robot stops. If you don't have sensors that can sense the human from a reasonable distance, that sounds like a ...
Steve Macenski's user avatar
0 votes

What is node_base_interface used for in ROS 2?

A limitation you'd hit is that the node base interface does not include the parameters, logging, services, ..., interfaces. You'd have to pass each in. My recommendation is to instead template the <...
Steve Macenski's user avatar
0 votes

Model in gazebo moves violently, with JointTrajectoryController

Do you initialize the JTC with any commands, or just activate it and leave it there? The current released version for humble should not send any commands to the hardware/simulation until the first ...
Christoph Froehlich's user avatar
1 vote

How to convert the kittti dataset into ros2 bags?

https://github.com/umtclskn/ros2_kitti_publishers looks to publish topics live using the native kitti format, you would have to ros2 bag record the published topics to get it into bags. It hasn't been ...
Lucas Walter's user avatar
  • 3,244
0 votes

ROS 2 Humble packages absolutely required when building from source

Take a look at the package requirements for the core and base variants at https://www.ros.org/reps/rep-2001.html There's some context and discussion here https://github.com/ros2/ros2_documentation/...
danzimmerman's user avatar
0 votes
Accepted

How do you pass params into another Xacro file via xacro:include? How does the other Xacro file receive that input?

Use the ns tag in the xacro:include. Resources ROS Wiki: http://wiki.ros.org/xacro#Including_other_xacro_files Xacro Repo: ...
Yato's user avatar
  • 11
1 vote

ROS2bag sample with Images

There is a small short duration mcap bag with images attached to https://github.com/lucasw/ros_one2z/issues/6, and you could run ...
Lucas Walter's user avatar
  • 3,244
0 votes
Accepted

using fastDDS on 2 computers with ROS Foxy and ROS Humble (Cannot receive topic on host computer)

Communication between different ROS 2 releases is not guaranteed to work, see this previous answer.
JRTG's user avatar
  • 1,379
1 vote

Running a websocket server from within a ros2 node

Well, I solved it immediately. The only change necessary was to add a timeout_sec=0 to the spin_once() call, like this: ...
Matthew Gomes's user avatar
0 votes

Configure diff_drive_controller in open loop on a real robot

Maybe I'm wrong, but can't you use the EKF as described here? Open_loop only means that the odometry is calculated from the commands instead of reading back sensor values. You anyways will need some ...
Christoph Froehlich's user avatar
0 votes

Turtlebot3 gazebo simulation not loading in ros2 humble

[spawn_entity.py-4] [ERROR] [1700055827.665935221] [spawn_entity]: Service %s/spawn_entity unavailable. Was Gazebo started with GazeboRosFactory? That usually points to needing to execute the gazebo ...
Steve Macenski's user avatar
3 votes
Accepted

ROS1 dependency in nav2 tutorial?

gazebo_ros is still used in ROS2. The source code is available here : gazebo_ros ros2 branch ...
Antoine Van Malleghem's user avatar
0 votes

using catkin win Ubuntu Humble with ROS2 Humble

ROS Humble is a ROS2 distro therefore it uses colcon to build packages instead of catkin tools. See Migrating C++ Packages - Build system: The build system in ROS 2 is called ament. Ament is built on ...
Sara D's user avatar
  • 13
0 votes

How to load a ComposableNode based on a condition?

Based on @Steve's suggestion, the following is what worked for me ...
ASH's user avatar
  • 21
1 vote

How to load a ComposableNode based on a condition?

You have shown the use of the IfCondition for if its true, you can also do the inverse: ...
Steve Macenski's user avatar
0 votes
Accepted

`ros2 topic list` from humble throws std::bad_alloc if iron runs on the same network

As explained in this issue, there was a change in rmw_fastrtps_cpp on rolling distro causing the unhandled error in humble. The linked PR fixes my issue.
Christoph Froehlich's user avatar
0 votes

ROS 2 Humble Building From source issues on BeagleBone Black, Ubuntu 22.04.3

First: don't post text output as screenshots. Instead: copy-paste it in a code block, between ``` delimiters, e.g.: ``` [copy - paste] ``` Now, wrt the error: it is about RViz (...
JRTG's user avatar
  • 1,379
1 vote

libheif-dev dependencies problems with humble on Mint

Solved by manually downloading libheif-dev_1.14.2-1ubuntu1_amd64.deb sudo apt install libaom-dev libdav1d-dev libde265-dev libx265-dev ...
diramazioni's user avatar
0 votes

How to copy the Python variable to inside another class?

import rclpy from std_msgs.msg import Int32 from pigpio_encoder.rotary import Rotary def main(args=None): rclpy.init(args=args) ...
Russ76's user avatar
  • 36
1 vote

How to copy the Python variable to inside another class?

EDIT after seeing the formatted code: In MinimalPublisher.ticks = counter you are referencing a Class variable. So to make it work you can make 'ticks' a Class ...
billy's user avatar
  • 191
1 vote

ROS2 Humble Executable not found

I suggest to install according to the official install instructions, and then to follow the tutorials. They explain how to create a package, source the ROS install and your own package, etc.
JRTG's user avatar
  • 1,379
1 vote
Accepted

Nav 2 - Max speed blocked way under the max vel specified

Its hard to help answer any of these types of questions without reproducable examples. There's no hard limit at 1.8947... in the code, so there's clearly something not configured properly that's ...
Steve Macenski's user avatar
1 vote
Accepted

Do constant fields in ROS2 topics affect serialized message size?

No. Looking at the binary data for a visualization_msgs/msg/Marker message saved with ros2 bag, the values of the constants don'...
Xilef11's user avatar
  • 26
0 votes

Controller Manager not available

Welcome at RSE. We released several examples on how to launch gazebo with ros2_control. Please have a look on how to setup your urdf files, writing your launch files, etc. Example 9 of ...
Christoph Froehlich's user avatar
0 votes
Accepted

Best Robot for Simulation

It depends on what you need to do. I assume you want to do path planning. If you just need a kinematic model, and you want to build your own path planning algorithm for that model, you can choose any ...
lazylace's user avatar
1 vote
Accepted

What is the difference between RCL_STEADY_TIME, RCL_SYSTEM_TIME and RCL_ROS_TIME?

The documentation on the different time sources is here: There will be at least three versions of these abstractions with the following types, SystemTime, ...
JRTG's user avatar
  • 1,379

Top 50 recent answers are included