What is node context

asked 2021-06-18 06:03:47 -0500

BhanuKiran.Chaluvadi gravatar image

Hi ,

Recently i have a bug which says C++ exception with description "could not create publisher: rcl node's context is invalid, at /opt/ros2_foxy/src/ros2/rcl/rcl/src/rcl/node.c:441" thrown in the test body.

Can some once explain what is node context ? and why its needed

edit retag flag offensive close merge delete

Comments

1

It's an internal object used to keep track of some information/state: https://github.com/ros2/rcl/blob/80ef.... You usually shouldn't need to worry about this, but this error could mean that you did something wrong. Assuming your intention is to solve this issue, please mention in your question which ROS 2 distro you're using, and also please provide the code you're running to get this error, otherwise we can't really help you solve this issue.

christophebedard gravatar image christophebedard  ( 2021-06-18 11:21:20 -0500 )edit