Questions tagged [rclpy]
The rclpy tag has no summary.
95 questions
0
votes
0
answers
7
views
Action server with mutually exclusive group does not work as expected [ROS2 - Python]
Context
Hello, I recently wanted to implement a ros2 node (in rclpy) that manages multiple action servers. I wanted to make sure that only one action goal can be ...
0
votes
1
answer
25
views
0
votes
1
answer
85
views
Lifecyle_msgs/GetState Service does not respond when called from node
Current state
I am trying to get the current state of a Managed Node from another Node, in ROS2 Jazzy. To manage multiple lifecycle nodes from a single node.
Doing so by calling the ...
0
votes
1
answer
107
views
ROS2 - rosout using rclpy.logging.get_logger()
ROS2 Humble.
My ROS node has internal loggers created using rclpy.logging.get_logger('logname'). this is done because i want the logger to have different name from the node logger.
However, I dont see ...
0
votes
0
answers
72
views
ROS 2 Action Server doesn't accept new goals after completing one mission
I'm working with a custom ROS 2 Action Server that coordinates a hybrid automaton. When a goal is received, the server triggers a set of services and continuously publishes feedback until a mission-...
0
votes
1
answer
47
views
Overriding node parameters after calling rclpy init
I want to be able to write tests to verify that a node initialises correctly with different parameters. The parameters are retrieved/defined in the node's init function as follows.
...
0
votes
1
answer
26
views
Namespaced type from message instance
Say I have a Pose message. How can I get its full namespaced type geometry_msgs/msg/Pose from the object? I've looked in ...
1
vote
0
answers
36
views
How to check what type of executor is running a node's callbacks
I have a node which has an ActionServer implementation which requires the use of a MultiThreadedExecutor.
I would like to ...
0
votes
1
answer
129
views
Logging from non-ros components without access to node
I'm trying to convert some code from ros1 into ros2. In ros1, it was possible to print logging messages from anywhere in a process by using ...
0
votes
1
answer
223
views
Converting message string into message type
I have a class which I'm using to handle topics which could be of a variety of different types. I know the topic name, but I can't necessarily infer the type of the topic from its name. Also, having ...
0
votes
1
answer
138
views
Adding namespaces to TransformListener
I am trying to get the transformation from my forklift robot's base link to the fork frame but I am struggling to understand how I can supply a namespace to rclpy's TransformListener. I have tried to ...
0
votes
1
answer
117
views
MoveIt2: is it possible to add collision objects via the Python interface?
Using something like
...
0
votes
1
answer
169
views
Dynamically create and destroy (sub)nodes from one running instance of (main)node in rclpy?
In rclcpp, I use node->create_sub_node() to dynamically create nodes under the namespace. And I am looking for something similar for the rclpy. I couldn't find inbuild functionality, but if someone ...
3
votes
1
answer
952
views
Actual good way to close nodes
I was checking the code from example packages, such as demo_nodes_py and found out that there were no destroy_node() or ...
0
votes
1
answer
142
views
Parallelization across multiple processors with ROS2 Python
Are there any recommended ways for doing full multithreaded processing (multiple cores) with ROS2 python/rclpy? The multithreaded executor is often recommended, but it seems that executor is subject ...