Attention: Answers.ros.org is deprecated as of August the 11th, 2023. Please visit robotics.stackexchange.com to ask a new question. This site will remain online in read-only mode during the transition and into the foreseeable future. Selected questions and answers have been migrated, and redirects have been put in place to direct users to the corresponding questions on Robotics Stack Exchange. Additional details are available here.
The site is read-only. Please transition to use Robotics Stack Exchange
0
Hey guys what is wrong with this piece of code? I am a beginner with rose and I am trying to create a frame that listens to another one. However, it keeps sending me a warning saying that the frame doesn't exist.
I am not sure if you only have this node. My assumption is that you probably have some misconceptions about frame in ROS.
Publishing a visualization_msgs/Marker message does not create a frame. In fact, you don't create individual frames in ROS. You define relationship between coordinate frames by broadcasting a transform to tf or tf2.
it keeps sending me a warning saying that the frame doesn't exist.
So it literally means that frame does not exist in the tf. When you use lookupTransform() , target_frame and source_frame must both already exist in the tf tree.
Are you sure the frame exists?