Giter VIP home page Giter VIP logo

Comments (5)

vd9hosigi6 avatar vd9hosigi6 commented on August 16, 2024 1

xacro 컴파일 오류 해결 방법입니다.

gcamp_gazeo 컴파일 시 다음과 같은 오류가 발생합니다.

$ colcon build --symlink-install --packages-select gcamp_gazebo  

xacro_error01

오류가 발생한 이유는 xacro 패키지를 설치하지 않았기 때문입니다.
xacro 는 다음과 같이 설치할 수 있습니다.

$ sudo apt install ros-foxy-xacro  

그런데 xacro 를 설치한 후에도 여전히 같은 문제가 발생하는 경우 다음 명령을 실행해야 합니다.
참고로 ROS 2 를 패키지를 다운 받아 설치하지 않고 직접 빌드하여 사용하고 있는 사람들의 경우 이런 문제가 발생합니다.

$ source /opt/ros/foxy/share/xacro/local_setup.bash

그리고 새로 빌드하면 성공적으로 빌드됩니다.

$ colcon build --symlink-install --packages-select gcamp_gazebo  

xacro_error02

그런 후 ~/.gazebo/gui.ini 파일을 다음과 같이 수정합니다.

[model_paths]   
filenames=/home/<사용자ID>/ros2_ws/src/gcamp_ros2_basic/gcamp_gazebo/GazeboFiles/models   

그리고 gcamp_gazebo 를 실행합니다.

$ ros2 launch gcamp_gazebo gcamp_world.launch.py

컴퓨터 사양에 따라 처음 실행 시 약 5분 정도 걸릴 수 있으니 기다리면 다음과 같은 화면이 나옵니다.

xacro_error03

from gcamp_ros2_basic.

kimsooyoung avatar kimsooyoung commented on August 16, 2024

Since There's Few Information, Cannot recognize problem.

Add more info as I mentioned to you through e-mail.

from gcamp_ros2_basic.

opensupport-ceo avatar opensupport-ceo commented on August 16, 2024

I installed ROS-Foxy via https://puzzling-cashew-c4c.notion.site/ROS-2-Foxy-Linux20-04-58f0c6f2537e498eb8fe163ad1f13ce5.

In short,
Env.: Ubuntu 20.04, ROS-Foxy-desktop

and then as I reported in the previous, I got the error when I run "$ cbp gcamp_gazebo".

Let us know whether there's more information you have to know, related to my env..

from gcamp_ros2_basic.

kimsooyoung avatar kimsooyoung commented on August 16, 2024

How did you install xacro?
Did you install with apt?

for example

$ sudo apt-get install ros-foxy-xacro 

Plz Share your log with exact commands

from gcamp_ros2_basic.

kimsooyoung avatar kimsooyoung commented on August 16, 2024

Closed because it has been resolved and there is no reply for a long time.

from gcamp_ros2_basic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.