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
9
votes
2 answers

How to correctly link opencv3 under ROS Indigo (using CMake)?

Am not being able to link opencv3 that I installed myself separately from ros. Am getting this error ../devel/lib/libirTest.so: undefined reference to `cv::ORB::create(int, float, int, int, int, int, int, int, int)' ../devel/lib/libirTest.so:…
Courier
  • 920
  • 2
  • 11
  • 36
9
votes
2 answers

catkin_package vs. find_package

in the file CMakelists.txt I see find_packages and catkin_package: find_package(catkin REQUIRED COMPONENTS roscpp rospy image_transport std_msgs message_generation sensor_msgs geometry_msgs ) catkin_package( CATKIN_DEPENDS…
user5547561
  • 157
  • 1
  • 2
  • 8
9
votes
1 answer

How do I convert a video or a sequence of images to a bag file?

I am new to ROS. I need to convert a preexisting video file, or a large amount of images that can be concatenated into a video stream, into a .bag file in ROS. I found this code online:…
ksivakumar
  • 481
  • 2
  • 5
  • 19
8
votes
3 answers

Failed to load Python extension for LZ4 support. LZ4 compression will not be available

I am new to ROS, I just opened a terminal and typed roscore and another terminal and typed rostopic node and I got this error that says Failed to load Python extension for LZ4 support. LZ4 compression will not be available. I searched and went to…
Abdelrahman Emam
  • 385
  • 1
  • 6
  • 15
8
votes
7 answers

Why this error when I try to create workspaces in ROS?

Whenever I try to create a workspace: ~/catkin_ws$ catkin_make It shows like this: ImportError: "from catkin_pkg.package import parse_package" failed: No module named 'catkin_pkg' Make sure that you have installed "catkin_pkg", it is up to date…
rachuism
  • 193
  • 2
  • 3
  • 9
8
votes
1 answer

Constructor reference parameter results in seg fault

I am using the following code in a ROS application. class RobotisController { private: .... public: ros::NodeHandle pxxx; } RobotisController::RobotisController(ros::NodeHandle& nh) : pxxx(nh) { …
Lonewolf
  • 497
  • 5
  • 13
8
votes
3 answers

ROS Image subscriber lag

I am having some lag issues with a rospy subscriber listening to image messages. Overview: I have a rosbag streaming images to /camera/image_raw at 5Hz. I also have an image_view node for displaying the images for reference. This image_view shows…
sr71
  • 81
  • 1
  • 3
8
votes
2 answers

ROS - Compilation fails due to Bzip2 libraries

I'm trying to compile a package using Ros Indigo. I'm using a Raspberry Pi running Raspbian. The BZIP2_LIBRARIES BZIP2_INCLUDE_DIR are missing. When I run the make command, I get the following error: -- +++ processing catkin package:…
UserK
  • 884
  • 3
  • 17
  • 40
8
votes
4 answers

ROS publishing array from python node

I'm new to ros+python and i'm trying to publish a 1-D array from python ros node. I used Int32MultiArray but i cant understand the concept of layout in multiarray. Can anyone explain it to me? or is there any other way of publishing an array…
Cyril Anthony
  • 95
  • 1
  • 1
  • 5
8
votes
4 answers

Using Eigen Library in ROS Indigo

I am working on a project in ROS Indigo that requires using the Eigen libraries. According to indigo/Migration page on the ROS Wiki, the FindEigen.cmake module is now in the cmake_modules package. After following steps to add the cmake_modules…
smannan
  • 136
  • 1
  • 1
  • 4
8
votes
2 answers

How would you publish a message in ROS of a vector of structs?

I want to publish a vector of unknown length of structs that contain two integers and two strings. Is there a publisher and subscriber in ROS that can do this? If not, I've been looking at the tutorial of how to create custom messages and I figure I…
joshualan
  • 2,030
  • 8
  • 23
  • 32
7
votes
3 answers

Unable to install ROS Melodic on Ubuntu 20.04

I am trying to install ROS Melodic on Ubuntu 20.04 using these commands sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' sudo apt-key adv --keyserver…
Jimmy202020
  • 71
  • 1
  • 1
  • 2
7
votes
0 answers

Run Rviz from remote docker using X11

I'm planning to run ROS Rviz in a docker on a remote server, expecting the Rviz GUI to display on my local computer. But I cannot get it done. Any help would be appreciated. My ROS docker image on the remote server is based on…
donets20
  • 319
  • 4
  • 7
7
votes
3 answers

get "LogicError: explicit_context_dependent failed: invalid device context - no currently active context? " when running tensorRT in ROS

I have an inference code in TensorRT(with python). I want to run this code in ROS but I get the below error when trying to allocate buffer: LogicError: explicit_context_dependent failed: invalid device context - no currently active context? The code…
Mahsa
  • 466
  • 2
  • 7
  • 26
7
votes
1 answer

openCV 'cvPoint' and 'CV_FONT_HERSHEY_SIMPLEX' not declared in this scope

I'm trying to get the LSD-SLAM by Kevin George. But I got stuck because openCV doesn't want to be cooperative and when using catkin_make it doesn't know the following two…
MrMinemeet
  • 304
  • 6
  • 17