Questions tagged [node]

The tag has no usage guidance.

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

How to find the .cpp File of a node?

I have a node, where i cant find the .cpp file of it. Is there a way to find the exact path of the nodes .cpp file? I have a structure how the program is built up in rqt_graph. And there is a node ...
Maverick_ROS's user avatar
0 votes
0 answers
17 views

Data on real-time threads

I'd like to see a tutorial or baseline document covering optimization in Node. I learned that priority tasks or background tasks are performed depending on importance. Can you tell me where I can find ...
ertretff's user avatar
0 votes
2 answers
61 views

Sending node object to a class inside the node

I have a class named UarmControl that inherits the Node class. Inside my UarmControl class, I want to send the node it self to another class named Uarm that I want to create inside my constructor. The ...
eidetech's user avatar
0 votes
1 answer
23 views

Using ImageTransport in a constructor throws std::bad_weak_ptr

I am trying to create an ImageTransport instance to set up an image publisher which is a class member). I stick to this example, trying to adapt it to my class: <...
labude's user avatar
  • 11
1 vote
3 answers
65 views

Get the name of the node calling a service in the service callback

In rclpy (python), I'm creating a service. How can this service tell the name of the node that is calling it? My goal is to allow the service to check the node-name of the client before performing the ...
Sorawit Inprom's user avatar
1 vote
0 answers
27 views

Pybind11 python bindings for Node

I'm currently creating python bindings for libhri, a ROS C++ library on Humble. The current C++ implementation (not public yet) takes a rclcpp::Node::SharedPtr argument to internally create topic ...
Luka Juricic's user avatar
0 votes
1 answer
46 views

How to stop the subscription to "/parameter_events" that is automatically created in each node

I have been able to stop the publisher to the topic (/parameter_events) by setting start_parameter_event_publisher in ...
user37234'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
0 answers
54 views

ros2 node does not launch from a python launch file

The detector_cmd node does not run when the first two actions added. But the detector_cmd node runs correctly if I remove the ...
marton's user avatar
  • 1
0 votes
1 answer
50 views

node crashes when subscribe to /image_raw topic

I am trying to consolidate a few nodes into a single process using nodelets. I have a ObjectDetectionNodelet that has a subscriber that subscribes to the raw image ...
nebula's user avatar
  • 1
3 votes
1 answer
499 views

Start and stop a node from another node with no system call (ROS2 CPP)

The issue I'm reporting is quite common looking at similar questions: Shutdown a node from another node in ROS CPP Start or stop the ROS node in another node Could a node can be stoped by another node?...
Antonio Bono's user avatar
2 votes
0 answers
143 views

Destroying a publisher using node.destroy_publisher raises Invalid Handle exception

I'm trying to trigger a camera which is configured to use trigger mode in ROS2 Humble, Gazebo. I create a publisher inside a state in our state machine, to publish the trigger topic. Once the state ...
silkjc's user avatar
  • 21
0 votes
2 answers
364 views

Multiple ROS 2 Composable Nodes in a single launch file

I have multiple composable nodes that I need to run in parallel using a single launch file, as it is a pipeline consisting of various components. Is it possible to do that in ROS 2? or should I use ...
Mostafa_Hegazy's user avatar
0 votes
1 answer
78 views

[ROS2 Foxy] Topics sometimes subscribed to and sometimes published to

I have two Nodes who communicate with a Float32 message topic. The typical sequence of events are: Node A starts Node B starts Node A waits to subscribe to topic T Node B creates topic T publisher ...
user avatar
0 votes
1 answer
66 views

How can I call a ros2 executable with arguments from a non-ROS file

Hello, I have two questions: I would like to create a ROS API to start ROS nodes from a non-ROS python script. For example the non-ROS python script: pick.py, would call the pick_ros.py to start a ...
user avatar
0 votes
1 answer
8 views

Suggestion for Custom Behaviour and Clarification of FollowPath Action Node in Behaviour Tree

This is a question regarding the behaviour of the FollowPath action node in the nav2 behaviour tree. In the default implementation of the navigate to pose behaviour, the FollowPath action node has a ...
user avatar
0 votes
1 answer
126 views

How to read ros2 bag file in a node

Hi, I was wondering is there a better method to read ros2 bag files inside the ros2 node, I just want to send a command to run the bag files. The only source I found is this but this requires me to ...
user avatar
0 votes
1 answer
5 views

problems running image_publisher node

Hi! It's my first time I have to deal with images in ROS. As I am a beginner, I tried to run this node ...
user avatar
0 votes
2 answers
288 views

How to run a single node as root [ROS2]

Hello, I am trying to set up a ROS2 (foxy) node to run as root (with sudo). The node is running high frequency, low level operations on the RT-Linux kernel - thus the need for root access. I've been ...
user avatar
0 votes
1 answer
1 view

Starting a node twice, with differend parameters

Hallo , I want to start my node twice, but it shoud have differend parameter for my COM-Path. Here is my code: ...
user avatar
0 votes
1 answer
299 views

ROS2 nodes stay alive and keep publishing after shutting down

Hi, I am currently working with ROS2 Galactic on Ubuntu 20.04.3 LTS (Focal Fossa) on a project of mine. The problem: After stopping my launch file and shutting down my computer, the next time I open ...
user avatar
0 votes
1 answer
2 views

ROS node which broadcasts periodically frames getting from python?

Hi! Is there a ROS node which I can send with python a frame similar to the addTf() command and the node broadcasts this frame all the time? I want to create, modify and delete frames in one program ...
user avatar
0 votes
1 answer
9 views

Cannot retrieve parameters from YAML file (even if the file is found)

Hi, I wrote a very simple program in python to read parameters from a YAML file. The YAML file is the following: mqtt_node: ros__parameters: variable: 9494.98 ...
user avatar
0 votes
1 answer
158 views

How do you kill the "zombie" node in ROS2 on local?

I've programmed the publisher to create "/scan" however. that is the grave mistake. After close all ros2 applications, I noticed the /scan still running even if there is nothing runs it. It'...
Garrett Fogerlie's user avatar
0 votes
1 answer
87 views

ROS2 run bash script

I would like to run a bash script as a node liek the following: ros2 run package script.sh I know this is possible in ROS1, however I cannot find the right way to do it in ROS2. Do you have any idea ...
user avatar
0 votes
1 answer
146 views

Launching and killing nodes within a Python node in ROS 2 Foxy

I'm in the process of migrating a ROS Melodic python node into a ROS 2 Foxy python node. This particular node acts as the state machine for our software stack. It receives a message from another part ...
Siliconlad's user avatar
0 votes
1 answer
7 views

service on different namespace

Hey guys Quick question: I was wondering if it's possible to call services that are created on nodes with different namespaces? For instance, if I have node_1 on namespace node_1, can I call service_2 ...
user avatar
0 votes
1 answer
30 views

Programmatically create a node with a custom namespace in ROS 1

Hello, I wanted to know if there is a way to create programmatically in Python a ROS Node with a certain namespace decided by me. I know that in ROS 2 this is possible but I can't seem to find ...
user avatar
0 votes
1 answer
4 views

What is the difference between nodes that publishes/subscribes to a ConstPtr and a nodelet that publishes/subscribes to a Const::Ptr?

My understanding is that nodelet's don't make an extra copy of data and therefore are more efficient, However if I am sending a ConstPtr between nodes I shouldn't generate an extra copy of the data ...
user avatar
0 votes
1 answer
35 views

ROS2 Flask Threading issue

Hi all, I am trying to set up a ROS2 rclpy node that functions as a Flask socket server. This node needs to have a thread or timer-based process running (which handles a socket broadcast). The issue I ...
user avatar
0 votes
1 answer
1 view

How to assign the result returned by the bash command to the arg parameter or the param parameter?

When I use rtabmap_ros, I need to specify the database save path.The feasible method is to use the following method to assign values in rtabmap node: param name = &...
user avatar
0 votes
1 answer
14 views

Can anyone please help me, struggling to convert between quaternions and euler angles

Straight copy of the script: ...
user avatar
0 votes
1 answer
5 views

Call service from specific node

Scenario: System of multiple nodes able to be configured during runtime via one master. Idea: every node provides a service (ex: configure_node(config)) which can be called by the master. Each node is ...
user avatar
0 votes
2 answers
1k views

How to kill nodes in ROS2?

In ROS we have rosnode kill -a. Do we have something like this in ROS2? I tried ros2 node kill, but it didn't work. I am using ...
user avatar
0 votes
1 answer
131 views

[ROS2] composition and node names with launch files

Hi, I have a container with two nodes using intraprocess communication. One node is "normal", while the other is a lifecycle managed node. When I use a launch file to start the container ...
Myzhar's user avatar
  • 188
0 votes
1 answer
68 views

[Ros2] Creating Multiple nodes using class inheritance

Hi, I was wondering if you had an example on how to create multiple Nodes using the class inheritance. In ros, I created multiple nodes using ros::NodeHandle;. I ...
user avatar
0 votes
3 answers
5 views

How to subcribe 2 image topics with 1 node in same time?

Hi buddy, My name is Toan. I am a newbie in ROS. Now, i'm using Kinect Camera and trying to subcribe 2 image topics with 1 node. But seem like my code is wrong something. If i try to subcribe 1 node ...
user avatar
0 votes
1 answer
22 views

In ROS2, is a wall timer connected to a node in a way meaningfull for a user

Hi, I need an object (a node) to create a timer in ROS2. I can create any node just in order to call the respective method create_wall_timer, but I would like to ...
user avatar
0 votes
2 answers
2 views

How many nodes can publish to a single topic?

hello every body. I'm new in Ros and I have a simple question. How many nodes can publish to a single topic? thank you. Originally posted by hamed ghasemi on ROS Answers with karma: 3 on 2018-10-07 ...
user avatar
0 votes
1 answer
4 views

ROS 2 Bouncy : Node, Log and Classes best practice

Hello I am working with ROS 2 Bouncy and was wondering what is the best practice to log stuff in classes that are instantiated in a Node ? I know it's now recommended to inherit the ...
user avatar
0 votes
2 answers
6 views

ROS2 Managed node: triggering an error from primary state

I have a managed node with a thread running when it is in `ACTIVE ' state. During the execution of the thread an error can occur and I have not understood how to trigger an error event to enter into ...
Myzhar's user avatar
  • 188
0 votes
1 answer
26 views

ROS2: node vs managed node

Hello, I'm starting to port a node from ROS1 to ROS2 (ardent). One of the novelty that seems more promising in ROS2 is the lifecycle of the nodes, but I cannot find ...
Myzhar's user avatar
  • 188
0 votes
2 answers
3 views

Why cannot launch node of type [laser_geometry/laser_geometry]

I need to transfer from sensor_msgs::LaserScan to sensor_msgs::PointCloud2. I found laser_geometry package, (http://wiki.ros.org/...
user avatar
0 votes
1 answer
6 views

Can't launch/locate nodes - but nodes exist!

Hi all, I'm a ROS neophyte, trying to get my Neato Botvac D80 working with ROS Indigo, following Julian Tatsch's instructions (part 1,part 2). Here's what I've done so far: Gotten an RPi Zero W set ...
user avatar
0 votes
1 answer
17 views

Inbound TCP/IP connection failed: 'function' object has no attribute 'peer_subscribe'

I have two nodes, one publishes a topic (https://github.com/pitosalas/easy_filter/blob/master/scripts/obstacle_detector.py) that the other one (https://github.com/pitosalas/easy_filter/blob/master/...
pitosalas's user avatar
  • 465
0 votes
1 answer
15 views

rospy.init_node in multiprocessing.Process

Hello everyone, I have the following setup: The main thread which starts a ROS node with services, pubs, and subs A multiprocessing.Process which also should start an (anonymous) ROS node that has ...
user avatar
0 votes
1 answer
2 views

Neato LDS intensity data

The Neato LDS scanner returns the angle, range, intensity, and an error code. The neato_driver.py from the XV-11 node does not look at the intensity. I want to use the intensity data to help detect '...
user avatar
0 votes
1 answer
3 views

No response from service, node won't close either

I am running into an issue with calling a service in the callback function of a listener. I couldn't find a way to call the service as the initialization of the client stood in the main, but moving ...
user avatar
0 votes
1 answer
8 views

private params in launch file

Hi From what understand about launch file, <param> defined in <node> are private to that ...
user avatar
0 votes
1 answer
7 views

depth_image_proc couldn't find executable

Hey :-) I'm struggeling with the following problem: System: Ubuntu 16.04 64 Bit ROS Kinetic (Desktop-Full) installed out of the repository via "apt install" What I did: Recorded a stream ...
user avatar

1
2 3 4 5