Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad robot structure (only white body), on Ylo2 robot #340

Closed
elpimous opened this issue Jan 30, 2023 · 6 comments
Closed

Bad robot structure (only white body), on Ylo2 robot #340

elpimous opened this issue Jan 30, 2023 · 6 comments

Comments

@elpimous
Copy link

Hi the team,
I have a good xacro model , (a modification of your A1_description)
working perfectly on rviz, and joints tested :
Capture d’écran de 2023-01-30 23-59-12
Capture d’écran de 2023-01-31 00-01-06

@elpimous
Copy link
Author

I used your command line to create urdf and sdf files :
rosrun xacro xacro --inorder -o /home/ylo2/catkin_ws/src/quad-sdk/quad_simulator/ylo2_description/urdf/ylo2.urdf /home/ylo2/catkin_ws/src/quad-sdk/quad_simulator/ylo2_description/xacro/robot.xacro DEBUG:=false

and

gz sdf -p /home/ylo2/catkin_ws/src/quad-sdk/quad_simulator/ylo2_description/urdf/ylo2.urdf > /home/ylo2/catkin_ws/src/quad-sdk/quad_simulator/ylo2_description/sdf_mesh/ylo2.sdf

@elpimous
Copy link
Author

I had an error on sdf file. this line was fault : I removed it !
Capture d’écran de 2023-01-31 00-13-19

when launching : roslaunch quad_utils quad_gazebo.launch robot_type:=ylo2 I don't see any error on terminal.
Capture d’écran de 2023-01-30 23-58-25
Capture d’écran de 2023-01-30 23-58-30

@elpimous
Copy link
Author

elpimous commented Jan 30, 2023

Checking SDF file :

ylo2@ylo2-ROG-Strix-G713QR-G713QR:~$ gz sdf -k /home/ylo2/catkin_ws/src/quad-sdk/quad_simulator/ylo2_description/sdf_mesh/ylo2.sdf
Check complete

Checking URDF file :

ylo2@ylo2-ROG-Strix-G713QR-G713QR:~$ check_urdf <(xacro /home/ylo2/catkin_ws/src/quad-sdk/quad_simulator/ylo2_description/xacro/ylo2.xacro)
robot name is: ylo2_description
---------- Successfully Parsed XML ---------------
root Link: body has 1 child(ren)
    child(1):  trunk
        child(1):  hip2
            child(1):  upper2
                child(1):  lower2
                    child(1):  toe2
            child(2):  thigh_shoulder2
        child(2):  hip3
            child(1):  upper3
                child(1):  lower3
                    child(1):  toe3
            child(2):  thigh_shoulder3
        child(3):  hip0
            child(1):  upper0
                child(1):  lower0
                    child(1):  toe0
            child(2):  thigh_shoulder0
        child(4):  hip1
            child(1):  upper1
                child(1):  lower1
                    child(1):  toe1
            child(2):  thigh_shoulder1
        child(5):  D435
        child(6):  T265
        child(7):  abad_motors
        child(8):  accessories
        child(9):  battery
        child(10):  covers
        child(11):  imu_link

@elpimous
Copy link
Author

elpimous commented Jan 31, 2023

Well. SDF creation wasn't a success !!!
I corrected some things, starting from A1 original sdf file...
Now, working correctly.
Capture d’écran de 2023-01-31 14-24-55

Hope it will help each other.

@DanielChaseButterfield
Copy link

DanielChaseButterfield commented Jun 26, 2024

@elpimous I'm having a very similar issue, I checked my sdf and urdf files, and they still don't work. You mentioned "I corrected some things, starting from A1 original sdf file..." Do you remember what you did?

Currently, I'm taking out the "ignition" line as you did earlier in this thread.

Also, I noticed that running gz sdf currently generates a sdf file with version=1.7 instead of 1.6 as before, so I wondered if that could be the cause. However, when I try to use gz sdf to generate a file with version=1.6, I get the following error:

Error [SDF.cc:459] Unable to find SDF filename[root.sdf] with version =1.7
Error [parser.cc:159] Could not find the 'element' element in the xml file
ERROR: SDF parsing the xml failed

@elpimous
Copy link
Author

Hi Daniel.
Building SDF file from command Line don t work for me.
I had to use a default one, for ex A1, and adapt it with my one. (I did the SDF build command line, only to be able to extract needed values, for mt A1 adapted SDF file.
A long process, but working.
Hope it will help you
Vincent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants