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

Relative/Absiolute path problem #7

Open
pitosalas opened this issue Jan 29, 2025 · 1 comment
Open

Relative/Absiolute path problem #7

pitosalas opened this issue Jan 29, 2025 · 1 comment

Comments

@pitosalas
Copy link

My top level urdf includes:

 <xacro:include filename="$(find linorobot2_description)/urdf/2wd_properties.urdf.xacro" />
  <xacro:include filename="$(find linorobot2_description)/urdf/mech/base.urdf.xacro" />
  <xacro:include filename="$(find linorobot2_description)/urdf/mech/wheel.urdf.xacro" />
  <xacro:include filename="$(find linorobot2_description)/urdf/mech/caster_wheel.urdf.xacro" />
  <xacro:include filename="$(find linorobot2_description)/urdf/sensors/imu.urdf.xacro" />
  <xacro:include filename="$(find linorobot2_description)/urdf/sensors/generic_laser.urdf.xacro" />
  <xacro:include filename="$(find linorobot2_description)/urdf/sensors/depth_sensor.urdf.xacro" />
  <xacro:include filename="$(find linorobot2_description)/urdf/sensors/sonar.urdf.xacro" />
  <xacro:include filename="$(find linorobot2_description)/urdf/controllers/diff_drive.urdf.xacro" />

I am getting this error from the visualizer:

Image
@MorningFrog
Copy link
Owner

It seems that you have not configured the path of the linorobot2_description package. Your .vscode/settings.json should be similar to:

{
  "urdf-visualizer.packages": {
      "linorobot2_description": "${workspaceFolder}/src/linorobot2_description"
  },
}

The path to the package needs to be configured correctly because the urdf-visualizer does not directly call the ros command to find the package.

Also, make sure the files are in your open workspace.

Please tell me if the problem has been solved.🤝

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