Skip to main content

Questions tagged [rosrun]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

execute ros2 run command on self wrote packages

im having some hard time trying to solve this bug: system: ubuntu 24.04 LTS ROS2 distro: Jazzy I wrote a simple subscribe to teleop_twist_keyboard node to a topic then send Serial signal to my ...
Peter TheSeaweed's user avatar
0 votes
1 answer
22 views

ROS-NOETIC Program works when executing by rosrun but don't work when using roslaunch

I have a weird problem. I've created script for catching the rospy.log and publishing it into topic and saving to files.txt. It works fine while I'm launching it by rosrun. When ,launch file was ...
Wojciech Blacha's user avatar
0 votes
1 answer
43 views

ROSCORE RLException: ERROR: could not contact master

I have installed ROS noetic in ubuntu 20.04 and when I try to run roscore I always have following fault. I have source /opt/ros/noetic/setup.sh and export | grep ROS result shows good. declare -x ...
fengjian's user avatar
0 votes
1 answer
72 views

ModuleNotFoundError: No Module Named ''

I am running ros-humble and have been setting up my console-scripts so that I can run my nodes. I've used this kind of setup before and have it working for another node, except for some reason I can't ...
msalaz03's user avatar
0 votes
1 answer
93 views

unable to install rosbash

im trying to execute rosrun but it says i have to install "apt install rosbash" but when I try to install it it appears the following error: Some packages could not be installed. This may ...
Juan Miguel Rivas's user avatar
0 votes
1 answer
35 views

Unable to launch a python node using rosrun in ROS-Noetic (Ubuntu20)

COMMAND: rosrun my_robot_tutorial robot_news_radio_transmitter.py //python publisher node rosrun my_robot_tutorial smartphone.py //python subscriber node ...
user avatar
0 votes
1 answer
98 views

Roslaunch: file not found error for logging

Hi, I am working on a project, and I want to start the different nodes using a launch file. In the latter I start one Python node and the other is an rqt plugin that I created: ...
user avatar
0 votes
1 answer
361 views

[SOLVED] rosrun - Couldn't find executable

I have installed ROS Melodic on Fedora 33 and all seems to work properly, for example, I've tried to run the turtlesim node with turtle_teleop_key and turtlesim_node and they work as expected. So, I ...
user avatar
0 votes
1 answer
479 views

/usr/bin/env: ‘python\r’: No such file or directory

When using WSL to write python code and then trying to run it from rosrun, this error code is encountered. Originally posted by Victor_Kash on ROS Answers with karma: 50 on 2021-08-30 Post score: 0
user avatar
0 votes
1 answer
27 views

shebang is ignored by rosrun

I am trying to use a specific python interpreter to run a ros node written by python. For example, I created a package named tmp, and there is a python code named tmp_new.py in catkin_ws/src/tmp/...
user avatar
0 votes
2 answers
6 views

How to launch node if param equals true?

How would I start a node if a parameter equalled a given value? I'm thinking something like this pseudo code: ...
user avatar
0 votes
1 answer
5 views

Error: package 'my_examples_pkg' not found

I have a launch file that looks like this: ...
user avatar
0 votes
1 answer
4 views

ros run couldn't find executable file after catkin build and source

I'm trying to run an executable, but I'm getting the following error, I ran catkin build and then ...
user avatar
0 votes
1 answer
40 views

ROS (Melodic) + Docker: rosrun not found

Hi there, I am currently trying to run ROS Melodic on Docker to build the rosserial_arduino libraries for Arduino. Therefore I need to run ...
user avatar
0 votes
2 answers
5 views

I created a python and c++ node . But I cant see my nodes with rosrun command

I am pretty new Ubuntu and ROS . I created a python and c++ node as you can see first and second part . But I dont see my nodes with rosrun command. I have got this nodes on my ...
user avatar
0 votes
1 answer
416 views

Unable to use rosrun

`$ rosrun turtlesim Usage: rosrun [--prefix cmd] [--debug] PACKAGE EXECUTABLE [ARGS] rosrun will locate PACKAGE and try to find an executable named EXECUTABLE in the PACKAGE tree. If it finds it, it ...
user avatar
0 votes
1 answer
13 views

rosrun depthimage_to_laserscan not working

I am using turtlebot 2 with astra pro sensor on ubuntu 14 with ros indigo. when i run $rosrun depthimage_to_laserscan depthimage_to_laserscan image:=camera/depth/image_raw i get no response or any ...
user avatar
0 votes
2 answers
16 views

Rosrun can not find an executable file

So I have a package called dijkstra, it contains a cpp program in the src folder called algorithm_1.cpp which I need to run. First I run the command source devel/setup.bash to set up the environment. ...
user avatar
0 votes
1 answer
9 views

What does rosrun do internally?

I was following this tutorial - https://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28python%29 Out of curiosity, I ran the listener using ...
user avatar
0 votes
1 answer
2 views

rosrun can't open my video (ROS OpenCV)

Hi guys, I'm trying to stream some video file (.mp4). I wrote a node: ...
user avatar
0 votes
1 answer
6 views

rosrun/roscd not recognising correct folder/project path

I made an executable python script for the nodes, and saved it at the location: /home/florian/catkin_build_ws/src/dlc_project/scripts I have made it executable with chmod +x I have the shebang line ...
user avatar
0 votes
1 answer
120 views

Module not found error with rospkg when trying to import roslib

Hello, I have developed a custom control algorithm for mz robot in gazebo. Untile yesterday I used to use roslaunch spider_gazebo spider_world.launch to spawn the ...
user avatar
0 votes
1 answer
14 views

rosrun cant find package when using catkin_make_isolated

hi, when i use catkin_make_isolated, i can build executable successfully. but i cant use "rosrun package_name xxx" to execute it. [rosrun] Couldn't find executable named xxx below /home/xxx/...
user avatar
0 votes
1 answer
2 views

Scripts don't see ROS if executed by ProcessBuilder()

I want to execute a script with a ProcessBuilder(). My code is: ...
user avatar
0 votes
1 answer
103 views

[rospack] Error: package 'beginner_tutorials' not found

I followed the tutorials for ROS kinetic and in the writing a publisher and subscriber in C++ after copying the cpp files in the src folder of beginner_tutorials folder i pass: ...
user avatar
0 votes
1 answer
25 views

rosrun error FileNotFoundError: [Errno 2] No such file or directory

I'm trying to run rosrun package python scripts and get some errors below: ...
user avatar
0 votes
1 answer
124 views

Error: bad interpreter: No such file or directory

I am trying to run the following node using rosrun, to send data through my serial port and I get the error: ...
user avatar
0 votes
1 answer
27 views

[rosrun] Couldn't find executable

//www.ros.org/wiki/ROS/Tutorials/ExaminingPublisherSubscriber. When I try to run rosrun beginner_tutorials talker. It tells me that: [rosrun] Couldn't find executable named talker below /home/MY_NAME/...
user avatar
0 votes
5 answers
24 views

Command line argument passing in rosrun

Hi All, I am trying to pass the command line arguments while running rosrun <package> <node> <parameter> So that a particular block of code ...
user avatar
0 votes
2 answers
2 views

How to get string from terminal when starting the node. C++

Hello everyone, I'm trying to get a parameter used in the launch command of a node and use it on my c++ code. For example, when you're about to launch a node: $rosrun [packet] [node] [string], the [...
user avatar
0 votes
1 answer
8 views

Kill rosrun gracefully

Hi All, I am running a rosrun command to generate and publish messages continuously from a node X. But I am not able to gracefully kill the session. I am currently closing the terminal in order to ...
user avatar
0 votes
1 answer
65 views

Extracting depth images using rosrun command using realsense camera

I entered this command to extract depth images from intel realsense R200 camera: ...
user avatar
0 votes
1 answer
3 views

ROSRUN can't find EXECUTABLE

Hello, I am using kinetic and I am trying to run a simple publisher and subscriber. the cmakelists.xml has the following code. ...
user avatar
0 votes
1 answer
3 views

OpenCV difference between roslaunch and rosrun

...
user avatar
0 votes
1 answer
13 views

Running executables without using rosrun or roslaunch?

MY QUESTION : Do ROS topics still properly communicate (subscribe/publish) in the following situation, even though I DID NOT run executables by rosrun/roslaunch? If not, is there way to run ROS ...
user avatar
0 votes
1 answer
5 views

python syntax error for rosrun .py script

Hello I'm a noob at python, I downloaded this github package (turtlesim_hunter) Then when I rosrun I get a syntax error: ...
user avatar
0 votes
2 answers
23 views

rosrun beginner_tutorials listener.py results in no output

HI All I'm using ubuntu 16/04 along with python for writing nodes. I just have few hours experience on ROS. I pushed rosrun beginner_tutorials listener.py after defining the source but this resulted ...
user avatar
0 votes
3 answers
7 views

rosrun crash on auto-complete (tab)

dear all, i am using ros kinetic and ubuntu 16.04. since a few days I recognize the fact that if I hit tab after typing rosrun to see the available packages the console freezes and dies after a few ...
user avatar
0 votes
1 answer
48 views

rosrun vs roslaunch to run a single node, any difference?

Hi everyone! Well, in my understanding launch files are meant to launch a node or so many nodes at a time and allow setting parameters dynamically , remapping and ...
user avatar
0 votes
1 answer
16 views

How to pass rosparam yaml file on rosrun cmd line

Is there a way to pass rosparam yaml file on rosrun cmd line ...
user avatar
0 votes
1 answer
21 views

error while loading shared libraries

I want to use shared objects as libraries. The .so files of them are at my disposal. I created a catkin_package. That package contains a source, include and lib folder (where I put the .so files) My ...
user avatar
0 votes
1 answer
5 views

something is wrong when i run turtlesim_node

I am a beginner, I am learning ROS.org I use the ‘indigo’ version when i run this "rosrun turtlesim turtlesim_node" The screen display [ERROR] [1505802741.783016851]: [registerPublisher] ...
user avatar
0 votes
1 answer
7 views

How to know which package is being used when two packages with same name are installed at different location?

Hi, I have installed Hokuyo_node deprecated version from github. I already have Hokuyo_node installed while installing ROS. Now, when I use ...
user avatar
0 votes
1 answer
19 views

Is it possible to run nodes without source?

Hi, I'm working with ROS Kinetic in docker. I'm doing several thing through jenkins and several scripts to put my project (wrapped with ros) and all the dependency in the docker. As I want to keep my ...
user avatar
0 votes
1 answer
7 views

Problem with robot_upstart

I am trying to install robot_upstart for my package ...
user avatar
0 votes
1 answer
7 views

Issue with rviz:Markers Sending Basic Shapes (C++). Running "rosrun using_markers basic_shapes": "Please create a subscriber to the marker"

1.my rosdistro: indigo; my ros workspace is catkin. 2.my tutorial:link text 3.and then when i run :rosrun rviz rviz, it come up with nothing in my rviz, like this picture:no fixed frame, no shape on ...
user avatar
0 votes
1 answer
51 views

File output With roslaunch

Hello everyone, I just have a simple question on which i'm stuck for a few days : I have a node in which I output a hand written log file using the c++ functions from fstream. When i'm starting it ...
user avatar
0 votes
1 answer
10 views

source won't change the package path

Hi, I'm trying to run the pcl tutorial, since i need it for an university project. Unfortunately when I try to run the exaple ...
user avatar
0 votes
1 answer
3 views

How to use GPU enabled OpenCV with ROS Kinetic?

Hi, I want to use CUDA enabled OpenCV with ROS. I have kinetic which already has one OpenCV 3.2 but it is not cuda enabled and also doesn't have extra modules of opencv_contrib. For this reason, I ...
user avatar
0 votes
1 answer
3 views

Qxcb connection on rosrun turtlesim

Hi all, I am following the beginner rosnode tutorial http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes I have installed ros in bash. When I enter command "rosrun turtlesim turtlesim_node" ...
user avatar