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
127
votes
11 answers

"Repository does not have a release file" error

I'm trying to install ROS on Ubuntu. I'm getting this error: sudo apt-get update Hit:1 http://pk.archive.ubuntu.com/ubuntu cosmic InRelease Hit:2 http://pk.archive.ubuntu.com/ubuntu cosmic-updates InRelease Hit:3…
Suleman Khan
  • 1,297
  • 2
  • 7
  • 3
48
votes
2 answers

What does (void *)1 mean?

I'm reading the code of ROS. In the file ros_comm/roscpp/include/ros/subscriber.h, I see such a piece of code: operator void*() const { return (impl_ && impl_->isValid()) ? (void*)1 : (void*)0; } Well, (void *)0 can be regarded as NULL in C, but…
Yves
  • 11,597
  • 17
  • 83
  • 180
47
votes
12 answers

After install ROS Kinetic, cannot import OpenCV

I have first installed openCV from source using this script. When I tested it was working well. After I installed ROS kinetic, and open python3 and run import cv2 as cv, got the following error: Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC…
Alex
  • 1,097
  • 3
  • 11
  • 16
22
votes
1 answer

How to cross compile CMake for ARM with CMake

In short I'm trying to cross compile CMake with CMake, and I don't think I'm linking libraries correctly. What I want to do may not be possible, but I'd at least like to know why it isn't possible if that's the case. System: The host is a Linux box…
tbh
  • 221
  • 1
  • 2
  • 3
17
votes
6 answers

How to install the 'glob' module?

I am running ubuntu 14.04 and trying to launch ROS Simulator. I have this error: ImportError: No module named 'glob' Installing glob2 does not solve the problem. python -m site output: sys.path = [ '/home/omar', …
Omar Amr
  • 403
  • 1
  • 5
  • 10
16
votes
2 answers

Visual Studio Code syntax highlighting for CMakeLists.txt

I am using ROS and C++ and ROS packages have a CMakeLists.txt in them. I would like to have a syntax highlighting for CMakeLists.txt in visual studio code. Unfortunately, I searched on the internet but I can't find how to do this. Could you help…
desmond13
  • 2,913
  • 3
  • 29
  • 46
16
votes
1 answer

ROS package not found after catkin_make

I created a ROS workspace following the Wiki page from ROS. I also created a package using catkin_create_pkg under the workspace I just created. Then, following the steps in ROS Wiki to build the package using catkin_make, after the package is…
user1964417
  • 1,675
  • 4
  • 17
  • 26
15
votes
6 answers

ROS: Use lambda as callback in nodehandle.subscribe

I want to be able to define a callback through a lambda but I can't get any of the function signatures to match. std::function callback = [&mycapture](const sensor_msgs::PointCloud2 msg) { // do something…
jc211
  • 397
  • 2
  • 9
14
votes
3 answers

VScode setup with ROS and auto complete

I am struggling to configure VSCode with ROS to have the auto-complete function. I am used to using VSCode with Qt and OpenCV and everything worked fine. For example, for OpenCV, I just edited c_cpp_propreties.json like this: { "configurations": [ …
DiXcipuli
  • 359
  • 3
  • 11
14
votes
4 answers

What install command does in cmake?

I couldn't understand the CMake documentation for install. I have a sample cmake file, where an executable is generated by add_executable(${PROJECT_NAME}_node src/filename.cpp) Then later installed by the following command install(TARGETS…
TonyParker
  • 2,024
  • 5
  • 18
  • 27
14
votes
4 answers

How to install OpenCV in ubuntu 12.04

I already have OpenCV2.4.2 installed as part of ROS(Fuerte) in my computer(installed from Ubuntu Software Center, something due to ROS). How should I install OpenCV as a standalone? I went through this guide and downloaded the opencv package from…
Karthik Murugan
  • 1,595
  • 4
  • 19
  • 26
13
votes
4 answers

ImportError: No module named catkin_pkg.packages

I am trying to run:- roslaunch turtlebot_gazebo turtlebot_world.launch but I am getting following error Traceback (most recent call last): File "/opt/ros/kinetic/share/xacro/xacro.py", line 55, in import xacro File…
13
votes
4 answers

Catkin command not found

I have installed ROS indigo and gazebo2 packages in Ubuntu 14.04.5. When I try to use catkin command, I get: catkin_init_workspace : command not found So, I tried to install catkin, it displays that ros-indigo-catkin is the latest version. All I did…
Kathiravan Natarajan
  • 3,158
  • 6
  • 22
  • 45
13
votes
1 answer

Difference between spin and rate.sleep in ROS

I am new to ROS and trying to understand this powerful tool. I am confused between the spin and rate.sleep functions. Could anyone help me with the difference between these two functions and when to use each one?
Stephen127
  • 305
  • 2
  • 3
  • 10
12
votes
1 answer

Using cv::rgbd::Odometry::compute

I am using C++ and OpenCV with combination of ROS. I use live images from my camera (intel realsense R200). I get depth and RGB images from my camera. In my c++ code I want to use these images to get odometry data and make a trajectory out of it. I…
dieKoderin
  • 1,552
  • 3
  • 19
  • 39
1
2 3
99 100