Questions tagged [ros]

Questions related to ROS(Robotics Operating System)

ROS (Robot Operating System) provides libraries and tools to help software developers create robotics applications. It provides hardware abstraction, device drivers, libraries, visualizers, message-passing, package management, and more. ROS has different distributions for different Ubuntu versions.

The latest version is ROS Noetic Ninjemys, which is targeted at Ubuntu 20.04 (Focal), has a May 2025 end of life. The list of available versions can be found in documentation.

You may also want to consider asking your question on robotics stack exchange which is currently in the process of having the ROS Answers (answers.ros.org) Q&A database merged into it.

Links

3393 questions
7
votes
3 answers

ImportError: No module named 'rospy'

I installed the ROS package for Crazyflie, I wanted to run a simple script but when I type sudo python3 execute_trajectory.py , it gives me an error of no module named rospy. This is the package: https://github.com/whoenig/crazyflie_ros and the…
flavia13
  • 85
  • 1
  • 1
  • 4
7
votes
1 answer

Visualize pointcloud

I have 3D points from gpu::reprojectImageTo3D on a found disparity image. I would now like to display this pointcloud. How do I Convert the found pointcloud from OpenCV to sensor_msgs/PointCloud2 ? I do not need to publish the pointcloud this is…
JTIM
  • 2,774
  • 1
  • 34
  • 74
7
votes
3 answers

How to generate .deb from catkin workspace in ROS

I can compile and install ROS package in the catkin workspace in ROS. How can I export the package in catkin workspace to a .deb file so I can install and use it on the other machines? My ROS version is ROS Indigo and OS version is Ubuntu 14.04
Wennn
  • 119
  • 1
  • 7
7
votes
0 answers

Simulink MultiArray message generation to ROS

How can I create a publisher that in Simulink (Matlab R2015A) that sends an array of floats as a ROS message (in ROS Indigo under Ubuntu 14.04)? I should use the BlankMSG block with msg type: std_msgs/Float32MultiArray, a Publish block with the same…
Elod
  • 499
  • 9
  • 25
7
votes
3 answers

Setting up ROS package in CLion

I am using CLion (C++ IDE) for editing a ROS package. I was able to open a package by opening the CMakeLists.txt file. But, I get an error, "FATAL_ERROR "find_package(catkin) failed. catkin was neither found in the workspace nor in the…
boon
  • 345
  • 1
  • 4
  • 11
7
votes
3 answers

How to force c++ compiler use one of different installed package's versions, using CMake?

ROS Fuerte I installed on my machine uses opencv 2.2. I would like to use 2.4.9 version just installed. Its location is /home/polar/soft/lib/opencv/opencv-2.4.9/build/lib. How to do that with CMake, please? From my search, it seems that find_library…
Courier
  • 920
  • 2
  • 11
  • 36
7
votes
1 answer

what is the difference between operating system and meta-operating system

Recently I heard the term meta-operating system while I was learning ros. Could you please help me to differentiate between operating system and meta-operating system?
UTP
  • 79
  • 1
  • 1
  • 5
6
votes
1 answer

Problem communicating over a local area network (LAN) with ROS on WSL2

I am a developer of ROS projects. Recently I am trying using ROS(melodic) on WSL2(Windows Subsystem for Linux), and all things works just great. But I got some trouble when I want to use another PC which also in the same local area network(LAN) to…
元哼黃
  • 87
  • 1
  • 4
6
votes
1 answer

How to feed the data obtained from rospy.Subscriber data into a variable?

I have written a sample Subscriber. I want to feed the data that I have obtained from the rospy.Subscriber into another variable, so that I can use it later in the program for processing. At the moment I could see that the Subscriber is functioning…
Sai Raghava
  • 147
  • 1
  • 4
  • 13
6
votes
1 answer

ROS logger disables Python logger

I am having issues with the Python logger and the rospy logger. In the begining, the Python logger stopped logging as soon as a ROS node was initialized. I tried to solve the problem by adding a stream handler to the logger. Now it only logs if a…
Sharky Bamboozle
  • 1,066
  • 16
  • 28
6
votes
1 answer

Reason to set queue size of ROS publisher or subscriver to a large value

When I look over the tutorial of Robot Operating system (ROS), I found most example codes set the publisher's queue size to a larger value such as 1000. I think this leads to losing real-time response of the node. For what purpose, do people set it…
orematasaburo
  • 1,207
  • 10
  • 20
6
votes
2 answers

How to subscribe and publish images in ROS

I am trying to subscribe to the "/camera/image_color" topic which is data from my camera. I then want to do some voodoo on these images in opencv and publish them at a specific frequency. So that I can subscribe to them with another node. I have…
Ian
  • 151
  • 1
  • 3
  • 9
6
votes
1 answer

Installing ROS Melodic on Ubuntu 18.10

I can't be the only person interested in this combination of Cosmic (with Wayland) and Melodic. I'll be up-front: I seem to have successfully managed this on my XPS 13 (9370), or at least the install script [eventually] completed successfully.…
Brian Wright
  • 93
  • 1
  • 9
6
votes
1 answer

What is the difference between build dependency and runtime dependency

I was told that build dependency and runtime dependency are different. But I don't know why. If some dependency is necessary while building, can't we also say that it is necessary for running? If some dependency is necessary while running, can't we…
Yves
  • 11,597
  • 17
  • 83
  • 180
6
votes
3 answers

Converting mp3 byte array to float array to play with Unity

So I'm currently trying to take audio from an external microphone (that's actually on a robot in this case) and stream it into Unity to be played in a scene. I'm fairly certain this audio is encoded in the mp3 format with a sample rate of 16000 Hz…
njk23
  • 77
  • 1
  • 10