ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This was solved by using $(find) syntax
<?xml version="1.0" encoding="UTF-8"?>
<robot name="test_robot" xmlns:xacro="http://www.ros.org/wiki/xacro">
<link name="base_link">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="1"/>
<inertia
ixx="1" ixy="0" ixz="0"
iyy="1" iyz="0"
izz="1"/>
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="$(find test_robot)/src/description/meshes/test_robot.stl"/>
</geometry>
<material name="grey"/>
</visual>
</link>
</robot>
2 | No.2 Revision |
This was solved by using $(find) syntax
<?xml version="1.0" encoding="UTF-8"?>
<robot name="test_robot" xmlns:xacro="http://www.ros.org/wiki/xacro">
<link name="base_link">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="1"/>
<inertia
ixx="1" ixy="0" ixz="0"
iyy="1" iyz="0"
izz="1"/>
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="$(find test_robot)/src/description/meshes/test_robot.stl"/>
</geometry>
<material name="grey"/>
</visual>
</link>
</robot>
3 | No.3 Revision |
This was solved by using $(find) syntax
<?xml version="1.0" encoding="UTF-8"?>
<robot name="test_robot" xmlns:xacro="http://www.ros.org/wiki/xacro">
<link name="base_link">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="1"/>
<inertia
ixx="1" ixy="0" ixz="0"
iyy="1" iyz="0"
izz="1"/>
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="$(find test_robot)/src/description/meshes/test_robot.stl"/>
</geometry>
<material name="grey"/>
</visual>
</link>
</robot>
4 | No.4 Revision |
This For the meshes to appear in Gazeob, this was solved by using $(find) syntaxsyntax. BUT, this prevents it from spawning in RBVIZ2 on the /robot_description
topic
<?xml version="1.0" encoding="UTF-8"?>
<robot name="test_robot" xmlns:xacro="http://www.ros.org/wiki/xacro">
<link name="base_link">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="1"/>
<inertia
ixx="1" ixy="0" ixz="0"
iyy="1" iyz="0"
izz="1"/>
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="$(find test_robot)/src/description/meshes/test_robot.stl"/>
</geometry>
<material name="grey"/>
</visual>
</link>
</robot>
5 | No.5 Revision |
For the meshes to appear in Gazeob, this was solved by using $(find) syntax. BUT, this prevents it from spawning in RBVIZ2 on Use the /robot_descriptionfile://$(find)topicsyntax.
<?xml version="1.0" encoding="UTF-8"?>
<robot name="test_robot" xmlns:xacro="http://www.ros.org/wiki/xacro">
<link name="base_link">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="1"/>
<inertia
ixx="1" ixy="0" ixz="0"
iyy="1" iyz="0"
izz="1"/>
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="$(find filename="file://$(find test_robot)/src/description/meshes/test_robot.stl"/>
</geometry>
<material name="grey"/>
</visual>
</link>
</robot>