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

Simple xacro doesn't seem to work #51

Open
kevin-thankyou-lin opened this issue Feb 12, 2024 · 2 comments
Open

Simple xacro doesn't seem to work #51

kevin-thankyou-lin opened this issue Feb 12, 2024 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@kevin-thankyou-lin
Copy link

Hi, thanks for the great package!

For some reason, this simple xacro, named test.urdf.xacro, doesn't show anything in jupyter lab:

<?xml version="1.0"? >
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
  <link name="base_link">
    <visual>
      <geometry>
        <box size="1 1 1" />
      </geometry>
    </visual>
  </link>
</robot>

However, I'm able to view the .xacro in the examples/ repo.

What might be the cause?

@IsabelParedes
Copy link
Member

Hi @kevin-thankyou-lin!

It seems that the space you have between the ? and the > in the first line is causing a parsing error. When opened with the editor, all the syntax is the same color when it shouldn't be.

Apart from that, there is another issue where this model will not display when first opened. It seems to work fine after the file is edited, but maybe the initial loading of the file has a problem. I have to look into this a bit more.

But hopefully with this you can edit your xacro file :)

@IsabelParedes IsabelParedes added bug Something isn't working question Further information is requested labels Feb 14, 2024
@kevin-thankyou-lin
Copy link
Author

Hi @IsabelParedes, seems to work fine after the file is edited, but maybe the initial loading of the file has a problem - indeed! Nonetheless, thanks for help with the xacro fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants