Questions tagged [ros2]

Use this tag for questions related to ROS (Robot Operating System) version 2.

ROS2 is the second major version of the Robot Operating System (ROS), a middleware framework for controlling and communicating with robot systems.

For more information, see: https://docs.ros.org/

3008 questions
5
votes
1 answer

Cyclonedds: Can see topic when using ros2 topic list, but only can echo some of the topics over the wireless network

I have two PC in my setup. PC A [ROS Foxy] is connected to the router via Ethernet while PC B [ROS Humble] is connected to the router via WIFI. When I run ros2 topic list on PC B, I can see all the topics from PC A however no all the topic can be…
5
votes
1 answer

Network Issues: ROS2 Topic visibility dependency to Network Interfaces

My colleagues and I had the issue that sometime ros2 topics were not shown in “ros2 topic list” or that we could not “ros2 topic echo” the data. After further investigation, we concluded that the problem occurred when we connected/disconnected new…
Renzo
  • 81
  • 4
2
votes
1 answer

PERMISSION ERROR : colcon build

I've been using ROS2 Humble for a few months now - never faced this issue. Created a new package a few days back, but today, when I run colcon build, I get this error: CMake Error at cmake_install.cmake:60 (file): file INSTALL cannot copy…
KK29
  • 23
  • 3
1
vote
2 answers

what is the use of --symlink-install in ROS2 colcon build?

I am having difficultly understanding the difference between a normal colcon build and colcon build --symlink-install. Originally posted by Shiva_uchiha on ROS Answers with karma: 117 on 2021-02-15 Post score: 9 Original comments Comment by…
Shiva_uchiha
1
vote
1 answer

ament_python: Package doesn't explicitly install a marker in the package index

I am currently trying to implement a pure-Python ROS 2 package with ament_python. When building, I get the following warning: WARNING:colcon.colcon_ros.task.ament_python.build:Package 'foobar' doesn't explicitly install a marker in the package…
Felix Widmaier
1
vote
2 answers

Select topics with search pattern (regex) in rosbag2

Is there a simple way to select multiple topics (e.g. all topics from a node or (sub)namespace) with some sort of search pattern in rosbag2? The previous ROS(1) rosbag implementation did allow to use regular expressions of the form $ rosbag record…
Phgo
1
vote
1 answer

Timestamp message ros2 - python

Hi. I`m trying to form the timestamp message in ROS2 (dashing) in python. When I use msg.header.stamp = node.get_clock().now() I have the error: The 'stamp' field must be a sub message of type 'Time' Thanks in advance! :) ' Originally posted by…
mirella melo
1
vote
1 answer

Local planner stops shortly before arriving at goal

I am using ros2 and the navigation2 stack with dwb local planner. Moving along a path works quite good until I come close to the goal. As soon as I am about half a meter away from goal, local planner stops and recovery behavior starts. No debug…
madmax
1
vote
1 answer

Minimal ROS2 Installation

Is there a repo file available that produces a minimal ROS2 installation similar to ros-base from ROS1? Originally posted by david.hodo on ROS Answers with karma: 395 on 2019-06-10 Post score: 0
david.hodo
1
vote
0 answers

Is it possible to add emulate_tty option in a yaml launch file?

I know this option can be added when writing a launch file in python like this: def generate_launch_description(): node = Node( package='test_pkg', executable='"main', output='screen', emulate_tty=True, ) I'm…
Dawierha
  • 11
  • 1
1
vote
1 answer

QoS history policy in case of durability 'volatile' and reliability 'best effort'

Consider a ROS 2 QoS with: Durability policy Transient local, Reliability policy Reliable, and History policy Keep last 5 This makes sense: the publisher will ensure message are delivered, and it will send the last 5 messages to late-joining…
JRTG
  • 1,654
  • 2
  • 2
  • 11
1
vote
1 answer

Quality Of Service parameter in Ros2 Examples uses undocumented value

Until now, I just used examples of the ros documentation e.g. for the publisher self.publisher_ = self.create_publisher(String, 'topic', 10) and it all worked well. It looks like 10 could mean, in that case, the number of kept history items - but…
user3732793
  • 113
  • 3
1
vote
0 answers

ros2 interface show throw exception "InvalidResourceName"

I have customized some messages. After compiling and source, when I use the ros2 interface show command to view the message definition, it throws the following exception: Error processing '// generated from rosidl_adapter/resource/msg.idl.em' of…
张金阳
  • 11
  • 2
1
vote
1 answer

Compilation error when subscription callback's input is of certain type

I did an experiment where I tried all combinations of const, &, and SharedPtr as the input to the subscription callback. The message type is nav_msgs::msg::Odometry and the results are at the bottom of the code snippet. #include…
jlee
  • 25
  • 3
1
vote
1 answer

cout behaviour when using ros2 run and ros2 launch

I am trying to print to the screen from a node for testing reasons. std::cout is what I am using, I don't want to use RCLCPP_INFO_STREAM for this. When I run my node using ros2 run, I see my prints. When I run my node using ros2 launch, I dont see…
Anirudh
  • 11
  • 1
1
2 3
44 45