Error Code 23 Msg: FrameAttachedToGraph error

asked 2021-05-22 14:49:16 -0600

viswa_1211 gravatar image

I used Gazebo 11 to spawn an urdf file and attach a sdf model into it using Gazebo model editor. I have saved that file as sdf. Now when I try to spawn the file, I get the following error

[Err] [Model.cc:123] Error Code 23 Msg: FrameAttachedToGraph error, Non-LINK vertex with name [base_link_JOINT_0] is disconnected; it should have 1 outgoing edge in MODEL attached_to graph. [Err] [Model.cc:123] Error Code 23 Msg: Graph has __model__ scope but sink vertex named [base_link_JOINT_0] does not have FrameType LINK OR MODEL when starting from vertex with name [base_link_JOINT_0]. [Err] [Model.cc:123] Error Code 26 Msg: PoseRelativeToGraph error, Vertex with name [base_link_JOINT_0] is disconnected; it should have 1 incoming edge in MODEL relative_to graph. [Err] [Model.cc:123] Error Code 26 Msg: PoseRelativeToGraph frame with name [base_link_JOINT_0] is disconnected; its source vertex has name [base_link_JOINT_0], but its source name should be __model__.

When I ran ign -k model.sdf, I get the following error:

Error: Child link with name[artpark::link_1] specified by joint with name[base_link_JOINT_0] not found in model with name[skid4wd_mani]

The model artpart is nested inside the model skid4wd and it has the link link_1. Other answers are suggesting to add inertial component inside the link. However, inertial component is present inside the link. I am not sure if it is because of ROS Noetic. Can someone please help?

Here's the file: https://github.com/viswanarayanans/mpc_gazebo/blob/main/mpc_gazebo/src/skid4wd_description/models/skid4wd_mani/model.sdf

edit retag flag offensive close merge delete