ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Before you can use xacro to convert the .xacro, you must build the workspace, as the .xacro refers to ROS package resources that can only be found when you have an active workspace.

So the steps would become (adjust where necessary of course):

mkdir -p ~/ws_moveit/src
cd ~/ws_moveit/src
# copy / clone / download the files here
cd ~/ws_moveit
source /opt/ros/melodic/setup.bash
catkin_make
source ~/ws_moveit/devel/setup.bash

at this point only your workspace is activated and you can try converting the .xacro again.

Before you can use xacro to convert the .xacro, you must build the workspace, as the .xacro refers to ROS package resources that can only be found when you have an active workspace.

So the steps would become (adjust where necessary of course):

mkdir -p ~/ws_moveit/src
cd ~/ws_moveit/src
# copy / clone / download the files here
cd ~/ws_moveit
source /opt/ros/melodic/setup.bash
catkin_make
source ~/ws_moveit/devel/setup.bash

at this point only your workspace is activated and you can try converting the .xacro again.


Edit:

The build space at '/home/sam/ws_moveit/build' was previously built by 'catkin build'. Please remove the build space or pick a different build space.

Obviously if you used catkin build before then please keep using that. There is no requirement to use catkin_make per se.

As long as your workspace gets built, that's the important part.

Before you can use xacro to convert the .xacro, you must build the workspace, as the .xacro refers to ROS package resources that can only be found when you have an active workspace.

So the steps would become (adjust where necessary of course):

mkdir -p ~/ws_moveit/src
cd ~/ws_moveit/src
# copy / clone / download the files here
cd ~/ws_moveit

At this point you'll need to make sure you install all required dependencies for the packages you just copied/cloned/downloaded. See the answer to #q252478 for an example workflow.

Then build the workspace:

source /opt/ros/melodic/setup.bash
catkin_make
source ~/ws_moveit/devel/setup.bash

at this point only your workspace is activated and you can try converting the .xacro again.


Edit:

The build space at '/home/sam/ws_moveit/build' was previously built by 'catkin build'. Please remove the build space or pick a different build space.

Obviously if you used catkin build before then please keep using that. There is no requirement to use catkin_make per se.

As long as your workspace gets built, that's the important part.

Before you can use xacro to convert the .xacro, you must build the workspace, as the .xacro refers to ROS package resources that can only be found when you have an active workspace.

So the steps would become (adjust where necessary of course):

mkdir -p ~/ws_moveit/src
cd ~/ws_moveit/src
# copy / clone / download the files here
cd ~/ws_moveit

At this point you'll need to make sure you install all required dependencies for the packages you just copied/cloned/downloaded. See the answer to #q252478 for an example workflow.

Then build the workspace:

source /opt/ros/melodic/setup.bash
# or catkin build if you've used that before
catkin_make
source ~/ws_moveit/devel/setup.bash

at this point only your workspace is activated and you can try converting the .xacro again.


Edit:

The build space at '/home/sam/ws_moveit/build' was previously built by 'catkin build'. Please remove the build space or pick a different build space.

Obviously if you used catkin build before then please keep using that. There is no requirement to use catkin_make per se.

As long as your workspace gets built, that's the important part.

Before you can use xacro to convert the .xacro, you must build the workspace, as the .xacro refers to ROS package resources that can only be found when you have an active workspace.

So the steps would become (adjust where necessary of course):

mkdir -p ~/ws_moveit/src
cd ~/ws_moveit/src
# copy / clone / download the files here
cd ~/ws_moveit

At this point you'll need to make sure you install all required dependencies for the packages you just copied/cloned/downloaded. See the answer to #q252478 for an example workflow.

Then build the workspace:

source /opt/ros/melodic/setup.bash
# or catkin build if you've used that before
catkin_make
source ~/ws_moveit/devel/setup.bash

at this point only your workspace is activated and you can try converting the .xacro again.


Edit:

The build space at '/home/sam/ws_moveit/build' was previously built by 'catkin build'. Please remove the build space or pick a different build space.

Obviously if you used catkin build before then please keep using that. There is no requirement to use catkin_make per se.

As long as your workspace gets built, that's the important part.


Edit 2:

Then I attempt to run:

rosrun xacro xacro.py kr150_2.xacro > kr150_2.urdf

To receive the following error:

No such file or directory: kr150_2.xacro

Are you running this in the root of kuka_kr150_support, or in kuka_kr150_support/urdf?

Only the latter contains that file.

I'm assuming you are referring to these files.

Can you verify that you have those files in kuka_kr150_support/urdf?