New answers tagged python
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 ...
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
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 ...
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 ...
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, ...
0
votes
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 ...
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 ...
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 ...
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:
...
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
...
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.
...
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 ...
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.
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
...
Top 50 recent answers are included
Related Tags
python × 892ros × 411
ros2 × 101
ros-kinetic × 79
rospy × 60
roslaunch × 45
ros-melodic × 38
catkin × 31
c++ × 29
moveit × 29
opencv × 28
rosbag × 25
transform × 24
rviz × 21
publisher × 19
raspberry-pi × 18
turtlebot × 16
service × 15
ros-noetic × 14
ros-groovy × 14
ros-indigo × 14
ubuntu × 13
tf2 × 13
pointcloud × 12
osx × 12