ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi,
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.
I suggest you look through Writing a tf2 broadcaster and Writing a tf2 listener to see how to write a proper tf broadcaster/listener.
2 | No.2 Revision |
Hi,
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
, lookupTransformlookupTransform()target_frame
and source_frame
must both already exist in the tf
tree.
I suggest you look through Writing a tf2 broadcaster and Writing a tf2 listener to see how to write a proper tf broadcaster/listener. broadcaster/listener.