New answers tagged

2 votes
Accepted

How do you publish on a ROS topic when the message type is not known?

You can use AnyMsg to subscribe to the topic, then use this to acquire information about the topic which can be used to construct a publisher and a new message ...
cst0's user avatar
  • 770
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: ...
AndyZe's user avatar
  • 821
0 votes

SetuptoolsDeprecationWarning in ros2 Humble

I've encountered same problem, however I'm not able to downgrade setuptools. Also, I'm not getting warning, I'm getting error output. This is the output of my ...
Filip Zorić's user avatar
0 votes

Is there a way to publish a ROS AnyMsg in Python?

This is not possible. Only fully defined message types can be published, as the ROS middleware requires each topic to have a fixed message type. Once a type is established for a topic, attempts to use ...
Luis's user avatar
  • 123
1 vote

Is there a way to publish a ROS AnyMsg in Python?

This is not how AnyMsg is intended to be used, and I wouldn't expect it to be possible to do this. As the error message shows, ...
cst0's user avatar
  • 770
0 votes

SetuptoolsDeprecationWarning in ros2 Humble

I had two warnings: ...
tropappar's user avatar
0 votes
Accepted

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 ...
Roberto's user avatar
  • 131
1 vote
Accepted

Why can't I put a rospy.Timer in a while loop?

The rospy.Timer object is designed to operate asynchronously. When you create a Timer inside a while loop, it attempts to create a new timer on each iteration of ...
Robotawi's user avatar
  • 123
2 votes

Inverse kinematics for an unusual system

The first link you provided ikpy says that they support Denavit-Hartenberg angles. I did not check the other links but I think they should be widely supported. Also implementing a transformation in ...
rubimat's user avatar
  • 96
0 votes

Running / debugging ROS2 Python node with PyCharm on Windows

Partial answer already. I was experimenting running the script from a regular terminal. Running: ...
Roberto's user avatar
  • 131
1 vote
Accepted

depth aligned capture doesn't yield same number of rgb and depth frames -- cv_bridge exception: '[16UC1] is not a color format. but [bgr8] is

Using rosbag record -O mona_noetic.bag -a -x "(.*)theora(.*)|(.*)compressed(.*)" instead of ...
Mona Jalal's user avatar
0 votes

Switching between 2 cameras (using opencv)

I found the solution and now it works every single time. Code does not use any ApproximateTimeSynchronizer function. ...
user37201's user avatar
0 votes

Switching between 2 cameras (using opencv)

Welcome to Robotics Stack Exchange! It would be better to share more information about the underlying use case, as it is unsure what you are trying to achieve. Nevertheless, it seems that you need ...
ravi's user avatar
  • 1,291
0 votes

Converting a ros2 bag of color raw images to image files or video

I briefly googled about rosbag2video and found this fork https://github.com/mlaiacker/rosbag2video which seems support Humble. Give it a try.
Michael Orlov's user avatar
0 votes

Converting a ros2 bag of color raw images to image files or video

using https://gitlab.com/ternaris/rosbags and only for color raw topic ...
Mona Jalal's user avatar

Top 50 recent answers are included