New answers tagged ros2
0
votes
ROS2 control, how do I configure the IMU sensor broadcaster in the controller yaml?
you only have to define the name of your imu sensor to be able to configure it. You can find what parameters are needed by the imu_sensor_broadcaster here : https://github.com/ros-controls/...
0
votes
ROS2 parameters file and launch argument override
You want to ensure that the override parameters are in the same namespace as the node:
...
1
vote
What causes build error: cannot import name 'OVERRIDE_OPT' from 'em'?
Check: https://github.com/ros-tooling/action-ros-ci/issues/839
You can fix it by using a newer version of setup-ros.
Like:
...
0
votes
ROS2 NAV2 global costmap is updating only previosly unseen area
That is very strange. Try turning off the static layer - are any laser scans working initially? Its not clear from your example that they are given that the other laser scans align with the map so ...
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
...
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:
...
0
votes
ModuleNotFoundError: No module named 'aruco_marker.aruco_subscriber'
thanks for your reply @Zein... the problem is where the python file should be placed...i moved the python file from the scripts folder and placed in the ...
0
votes
ModuleNotFoundError: No module named 'aruco_marker.aruco_subscriber'
The python package that's installed is assumed to be inside the aruco_marker folder (inside the package there should be a folder with the same name as the package ...
0
votes
Is it possible to run a Gazebo Classic simulation distributed across more than one machine?
Is it possible to run a Gazebo Classic simulation distributed across
more than one machine?
If by "simulation" you mean the gzserver o.s. process, the answer is No.
1
vote
Accepted
Create message which is array of submessages?
Typically messages contain a timestamp and a reference frame. If one needs an array of data, that array is typically created inside the custom message. If one is looking to use a custom message type ...
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:
...
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.
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 ...
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.
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
0
votes
How to keep track of different robot configurations/ versions (urdf) over time
I would suggest saving the sensor placement (x y z roll pitch yaw) in a yaml file that you add to your ...
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.
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
1
vote
ROS2-foxy nodes can't communicate through docker container border
I had a problem with some of the same symptoms as this and spent quite a long time looking at all the DDS related configuration, but eventually figured out that it was because I set up rootless mode ...
0
votes
ROS2 Windows node always hang
I also have the same issue.I am using ros2 humble in windows10(virtual box).Ros2 commands are becoming unresponsive ..Even rviz2 is not working.I have posted the rviz2 issue in my page.
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 ...
0
votes
nav2 interactive_waypoint_follower example can not get robot_localization state
Are you using an older version of the nav2 simple commander? It should have a specific call out for robot_localization since its non-lifecycle:
...
0
votes
ROS2 Launch - How to Concatenate LaunchConfiguration with String
@shonigman's answer to his own question does not work for me any longer in Humble. What does work is:
...
0
votes
How to copy folders with subfolders to package installation path?
For anyone who stumbles upon this in 2023. You can also use the following list comprehension to generate the tuples:
...
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 ...
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
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 ...
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:
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 ...
0
votes
[ros2 humble]build error in pcl_conversions.h:fatal error: No such file message_event.h
it seems my CMakeLists.txt cause the issue, i added the following about "pcl_conversions" additionally
...
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 ...
0
votes
Nav2 bring up doesn't render turtlebot3
Make sure you have exported the both turtle model and gazebo path in the same terminal you are launching the package or include the below lines in the in the .bashrc file.
...
0
votes
ROS2 topic is limited to localhost
It turned out my ubuntu may have enabled ufw for some reason.
just entering 'sudo ufw disable' in terminal solved the problem!
1
vote
How to set planning frame in MoveIt 2
I'm having the same issue in moveit1 and ros-noetic and I just fixed it. You can use the function setPoseReferenceFrame (const std::string &pose_reference_frame)...
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 ...
0
votes
ROS2 topic is limited to localhost
Environment variable ROS_LOCALHOST_ONLY can do this.
See https://docs.ros.org/en/humble/Tutorials/Beginner-CLI-Tools/Configuring-ROS2-Environment.html#the-ros-localhost-only-variable
0
votes
Accepted
Nav2 building from source in docker
You need to source your Humble overlay before running rosdep. When you build the image without that last line and then run it, you can see that the sourcing happens ...
0
votes
Accepted
Configuration or best practices wrt. automatic chaining of `setup.bash` prefix paths from `colcon build`
The answer is in the colcon documentation:
local_setup.bash adds only that workspace to COLCON_PREFIX_PATH,
...
0
votes
When is the select-able ROS2 Middle-ware architecture planned have a public release
As Steve mentioned, the RMW_IMPLEMENTATION is a feature already present in ROS2 since the very early stages. Since you mentioned Zenoh, you might be referring to ...
1
vote
Linking wiringPi Library with ROS2 service (serial) through CmakeLists.txt
Replicated Error
I copied the wiringPi.h file from the GitHub and placed in an include directory in the package. Below are the ...
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.
0
votes
Accepted
Debugging ros2 libraries
In cmake, add_library() is used to build a library. It does not link it into the project executable. ...
0
votes
ROS2 on Windows 10 - `colcon build` uses wrong Python version: "No module named *"
It seems CMake is at fault here, even without colcon it just refuses to use the activated Python 3.8 venv, and instead falling back on the highest available Python ...
0
votes
Trouble with running ros1_bridge with external robot using Docker
I had similar issues long time ago, so I don't remember exactly what I did from the top of my head:
are you sure your ROS2 nodes is compatible with the rosbridge (ROS1) that you are using
configuring ...
2
votes
Trying to install ROS2 on Ubuntu Jammy, but I'm running into some errors
The "does not have a release file" error is because there is no ros1 binary release for Ubuntu 22. You should remove these ros1 repository lines from your apt config.
1
vote
How to use Raspberry Pi GPIO ports in ROS 2?
Your question about using Rasperry Pi GPIO ports in ROS 2 is an example of combining hardware controller with robotics software frameworks. I mean they are separate, but can be integrated to serve ...
0
votes
Accepted
FastDDS: demo_nodes_cpp between WSL2 and Raspberry Pi
ROS 2 uses multicast packets for discovery unless you set it up differently. The multicast packets may not be routed across your subnet, which is something you can check in your router configuration.
...
0
votes
How to use Raspberry Pi GPIO ports in ROS 2?
Pi GPIO library doesn't interact with ROS2 in any way I know of. Just use it as you would any library. The Pi GPIO deamon doesn't seem to impact ROS2 function either.
1
vote
Trying to install ROS2 on Ubuntu Jammy, but I'm running into some errors
Did you add the apt key?
...
0
votes
ROS2 systemd service launch to ROS topic
When running at a system process it will have a different user and environment. I would suggest making sure that you don't have any settings is places like your ...
Top 50 recent answers are included
Related Tags
ros2 × 2456ros × 839
ros-humble × 150
colcon × 139
gazebo × 125
python × 101
roslaunch × 97
navigation × 87
ros-crystal × 65
rviz × 63
rclcpp × 62
rclpy × 59
dds × 59
c++ × 56
nav2 × 55
tf2 × 51
ros-bouncy × 47
urdf × 44
transform × 44
moveit × 38
docker × 38
ament × 34
build × 33
ros-foxy × 31
slam × 28