Questions tagged [rosnode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
16 views

ros tutorial turtlesim running but no display in docker

I have just started learning ros from the tutorial given in their website. Tutorial link As i am using windows I wanted to learn in Ubuntu. So i am using docker version of the ros. but now while ...
Amarnath's user avatar
  • 111
0 votes
0 answers
10 views

ROS Connection in React Native Is Not Happening

ERROR Error in ROS connection: {"isTrusted": false, "message": "Failed to connect to /10.0.2.15:9090"} ...
Ved Recharla's user avatar
0 votes
0 answers
30 views

CycloneDDS is not working well ROS_LOCALHOST_ONLY=1 in ros2 humble

First, I configure the .bashrc file with: export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp export ROS_LOCALHOST_ONLY=1 But I got following error when run any ros ...
Phymin's user avatar
  • 13
0 votes
0 answers
45 views

Needed: ROS node manager

We've moved to ROS/ROS2 from LCM for a few systems in the lab. We used LCM a lot and liked the libbot/procman sheriff interface. It was great for launching/stopping programs, seeing their printouts, ...
Chris's user avatar
  • 1
0 votes
1 answer
43 views

Issue connecting ros master to Miro-E with ethernet and wireless connection

I am new to robotics and ROS. I have a Miro-E robot and I am trying to connect the ROS from my Nvidia Jetson Nano to the robot. The Jetson is connected to ethernet cable while the robot is wirelessly ...
ish's user avatar
  • 1
0 votes
2 answers
64 views

How to create/destroy a node instance from a Python script

I'd like to have a script that will create/destroy a publisher node. I'm experiencing problems with that, being unable to correctly destroy the node instance. I'm running ROS2 Humble under Windows I ...
jpo38's user avatar
  • 111
0 votes
1 answer
50 views

What is node_base_interface used for in ROS 2?

I am writing plugins using pluginlib and one of the initialization arguments are a node, like so: ...
Kaushal Sorte's user avatar
0 votes
0 answers
43 views

Is there a way to get the package or directory/location of a running node?

Is there a way to get the package name or directory/location of a running node? Preferably from within a separate python node. Things I've tried: rosnode info ...
BenB's user avatar
  • 101
0 votes
1 answer
76 views

How can I call a member method which is inside a ROS2 node class?

I have a node class shown below and I want to call its setCloud method from another class but it gives me the error: error: ‘using element_type = class rclcpp::Node’ {aka ‘class rclcpp::Node’} has no ...
SEC's user avatar
  • 3
0 votes
0 answers
92 views

ROS2 managed node: how to get the exception type and message in the error handler

ROS2 provides a new improved type of ROS node called lifecycle-managed node. These nodes can transition from one machine state to another after a user request or some other event, such as an exception....
LastStarDust's user avatar
0 votes
0 answers
29 views

Skip building the ROS package when the .cpp file is not modified

I'm using VS Code to debug the ROS node (i.e., .cpp file), here are part of my global launch.json and tasks.json files launch.json: ...
KKKmelody's user avatar
0 votes
1 answer
10 views

nodelet: can't add argument to constructor

I am writing a ROS nodelet in which I have a GetInstance() method. I am trying to parse a string argument and it's throwing me the error. Can someone point out how this error can be fixed?? Any help ...
user avatar
0 votes
1 answer
1 view

data is not seen from the robot when published from the workstation

I have followed this tutorial from this link https://www.youtube.com/watch?v=YMG6D... for setting up and troubleshooting the ros networks. I have modified it precisely the same way as it is provided ...
user avatar
0 votes
2 answers
171 views

How to kill nodes in launch file after 10 seconds

Hello! I am launching 7 ROS nodes using a single launch file. Can I kill all nodes after 10 seconds (or x seconds) without doing ctrl+c? I am using C++ btw. Originally posted by nayan on ROS Answers ...
user avatar
0 votes
1 answer
14 views

Is it possible to increase the publishing rate of a topic inside a launch file?

This is my situation, I am subscribing to a topic which publishes messages at a rate of 5 Hz and I want to increase the rate to 100 Hz. A way to achieve that, is creating a node and republish the ...
user avatar
0 votes
1 answer
1 view

What exactly is causing this error whne compiling the node?

I am trying to write a simple node that responds with a message when an image from camera is received. I have specific node provided by the ROS for this camera to open it and other to request the data....
user avatar
0 votes
1 answer
3 views

rosnode ping /node only once

I need to use 'rosnode ping /node' command inside my rosnode source file. Is it possible to ping a node only once? If I simply write "rosnode ping /node", it repeatedly pings the node for ...
user avatar
0 votes
1 answer
18 views

Loading controllers from yaml in namespace

Hi, (*Using ROS Melodic in Ubuntu) I am loading a yaml with 4 controllers + joint_state_controller in a namespace. Yaml aspect: ...
user avatar
0 votes
1 answer
12 views

Start a launch file via cpp

Hey guys, is there a way to start a launch file via c++ in a node? In my case, I have an Actionserver (actionlib) and want to be able to start a few other nodes as a goal. But since these other nodes ...
user avatar
0 votes
1 answer
5 views

ros nodes vs ros timers?

Hi, I'm would like to set up two loops at different frequencies on a system (like raspberry pi3). I'm trying to decide the optimal way to set up my code with the least latency in data transfer between ...
user avatar
0 votes
1 answer
1 view

catkin_make issue updating .srv and .cpp file simultaneously

Think of a situation where rosnode (written in c++) is using messages generated by a .srv file. You want to add a field to the .srv file and use it in the rosnode. If you make these changes ...
user avatar
0 votes
1 answer
1 view

Using a single node to process 2 input image files

I was reading a tutorial using OpenCV Image Processing (Python) in ROS and I got some doubts. The exercise consists on: Creating a new node to determine the angular pose of a pump housing using the ...
user avatar
0 votes
1 answer
3 views

Same name for pakage and node

Will it be a problem if the name of a ros package and a ros node within that package is same? Originally posted by vacky11 on ROS Answers with karma: 272 on 2018-08-08 Post score: 0
user avatar
0 votes
1 answer
4 views

how can we create a node publishing a random data using a class and without using a callback function

I want to create a publisher node without using a callback function as the title explains. Have you guys any suggestions? Originally posted by samo on ROS Answers with karma: 11 on 2018-07-19 Post ...
user avatar
0 votes
1 answer
3 views

Node not found after being initialized

I run this code below with a python interpreter. Then I type rosnode list from terminal. But I cannot see the node "hello". I only see "/rosout"....
user avatar
0 votes
1 answer
11 views

Rosnode ping rosout does not work on remote machine

I have two PCs, PC1 is the robot computer, which is the master, PC2 is my workstation. Both uses ubuntu 14.4 indigo. On PC2, I am connected to the network and able to do ...
user avatar
0 votes
1 answer
4 views

Where is the binary of a ROS package node

After installing ROS, I can use "rosrun turtlesim turtle_teleop_key". Where can I find the binary corresponding to the node turtle_teleop_key? Originally posted by Zhoulai Fu on ROS Answers ...
user avatar
0 votes
1 answer
17 views

How to publish integers values from a ROS node

Hi to all, I have a ROS node which publish data coming from encoders and current sensors (the node outputs velocity data, raw encoders ticks and currents). Currently, my ROS node publish all these ...
user avatar
0 votes
1 answer
4 views

abnormal exited rosnode still be seen on Master?

Hello, everyone: I see Master is a xmlRPC server that maintains all the information of all nodes, but when a node abnormal exited, that node still can be seen on the master ? How can I check the ...
user avatar
0 votes
1 answer
13 views

How to find if nodes are running on the same machine?

Hello, everyone! I see ROS is a real distributed system, all nodes use node_name and node_uri to identify itself. Now I need to write a monitor process, to monitor all nodes on the same machine. From ...
user avatar
0 votes
2 answers
23 views

Load a urdf/xml file as rosparm from a c++ ros node

I have followed the rosparam tutorial. But it dosent show how to load a xml/urdf file as a rosparam. Specifically, I want to set "robot_description" parameter from a c++ ros node not from a ...
user avatar
0 votes
1 answer
7 views

Running ROS across multiple machines is failed

Hi All, I am trying to run ROS across 2 machines, master is starting with out any issues when I tried to run listener getting below errors. ...
user avatar
0 votes
1 answer
2 views

Talker Listener Tutorial. Listener no show

Hi, I feel more confident with CMake and linux after spending time practising. So I tried again, these steps: http://wiki.ros.org/catkin/Tutorials/create_a_workspace http://wiki.ros.org/catkin/...
user avatar
0 votes
1 answer
9 views

Evaluating ROS param in Launch file

Hello All, I am writing a program for controlling a robot. The robot has to make different motions based on the information of where it is. For accomplishing this, I have written different number of ...
user avatar
0 votes
1 answer
2 views

Advertising new publisher after first spin in rosserial_windows

Apologies for the stupid question, but I'm still trying to grasp the basic concepts of rosnodes. Is it possible to advertise a new publisher after the first spin? I'm currently using rosserial_windows ...
user avatar
0 votes
1 answer
8 views

Distinguish Services from different nodes with same name

Hi, I wish to create 2 rosnodes with some services having same name. E.g. rosnode N1 has services S1,S2,S4 and rosnode N2 has services S2,S3,S5. The reason to have services of same name is because ...
user avatar
0 votes
1 answer
3 views

roslaunch cannot find node executable

I have an ROS node called bag_player_controller inside a package which is also called bag_player_controller. In another ROS ...
user avatar
0 votes
1 answer
1 view

Create a generic node in python

Hi all, I am trying to post this question once again. I am trying to create a ros node with multiple publishers, subscribers, services and action servers. To create this, I create a class and define ...
user avatar
0 votes
1 answer
6 views

Is it possible to launch a node on another computer from my computer?

I am working on a mobile robot project. I have tested the teleoperation by launching all nodes on the Pi, including the master, the keystroke detector, and finally the node that sends commands to the ...
user avatar
0 votes
2 answers
134 views

Proper way to shutdown /rosout (roscore)

Hello, I have a project where i start gazebo and several other rosnodes. I want to be able to shut them all down at some point. I have a node that waits for a certain message and then shuts all other ...
user avatar
0 votes
1 answer
2 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
0 votes
1 answer
28 views

How to send 'hexadecimal' message packets over tcp/ip network?

Hello, I am using ros indigo and ubuntu 14.04. I have a sensor that is connected through tcp/ip network. Its a querry response type of device. So basically I need to send meaningful data packets to ...
user avatar
0 votes
1 answer
2 views

Why is my_turtle alive even after I finished it?

I am lerning ROS from scratch following this: http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes first I did: $ rosnode list and the output was: /rosout then I started the Turtle: $ rosrun ...
user avatar
0 votes
1 answer
1 view

active/connected rostopics to terminal list or file

Is there a way to get the active or connected (i.e. excluding leaf topics) ROS topics as a list to the terminal or a text file? The topics can limited to only the active topics from ...
user avatar
0 votes
1 answer
19 views

How to convert sensor_msgs/LaserScan.msg to sensor_msgs/MultiEchoLaserScan.msg

Hello, I have a node that publish /scan topic and this topic has the massage type sensor_msgs/LaserScan.msg. another node can only subscribe sensor_msgs/MultiEchoLaserScan.msg massage type. The two ...
user avatar
0 votes
1 answer
39 views

How to correctly shutdown a rosnode?

I test a simple code snippet: ...
user avatar
0 votes
1 answer
1 view

Log the alive time of a rosnode?

I am currently working on a rosnode which purpose is to generate CSV files about certain information. One of the information i am seeking is to know how much time a rosnode has been alive. I know ...
user avatar
0 votes
1 answer
4 views

Is it possible to use a certain data value of a topic for executing some code?

Hello, i will try to be as clear as possible. I have a ROS topic in which are published only 0 and 1. In another node i have a subscriber that is subscribed to that topic. Then i had an idea to ...
user avatar
0 votes
1 answer
8 views

How to get the URI of a ROS node in Python?

I'm trying to find machines that publish a certain type of message. Therefore I'm inspecting the list of rosnodes rosnode.rosnode_listnodes() and would like to get ...
user avatar
0 votes
1 answer
1 view

When sending messages through rostopic, should both rosnodes need on?

Hi All: Here is one question about the "rostopic". Can client rosnode send message to the topic when server rosnode is off? or vice versa. The topic concept is also be used in MQTT protocol. ...
user avatar