➖ Delete extra files and folders
This commit is contained in:
parent
89ba14c294
commit
50ee38c5ad
2 changed files with 0 additions and 417 deletions
|
@ -1,102 +0,0 @@
|
|||
import os
|
||||
|
||||
from ament_index_python.packages import get_package_share_directory
|
||||
|
||||
from launch import LaunchDescription
|
||||
from launch.actions import DeclareLaunchArgument, ExecuteProcess, IncludeLaunchDescription
|
||||
from launch.conditions import IfCondition
|
||||
from launch.launch_description_sources import PythonLaunchDescriptionSource
|
||||
from launch.substitutions import LaunchConfiguration, PythonExpression
|
||||
from launch_ros.actions import Node
|
||||
from launch.substitutions import Command, FindExecutable, PathJoinSubstitution
|
||||
from launch_ros.substitutions import FindPackageShare
|
||||
|
||||
|
||||
def generate_launch_description():
|
||||
# Get the launch directory
|
||||
bringup_dir = get_package_share_directory('roboasm_sgonov')
|
||||
launch_dir = os.path.join(bringup_dir, 'launch')
|
||||
rviz_file = os.path.join(bringup_dir, 'config/robasm_sgonov.rviz')
|
||||
|
||||
# Launch configuration variables specific to simulation
|
||||
rviz_config_file = LaunchConfiguration('rviz_config_file')
|
||||
use_robot_state_pub = LaunchConfiguration('use_robot_state_pub')
|
||||
use_joint_state_pub = LaunchConfiguration('use_joint_state_pub')
|
||||
use_rviz = LaunchConfiguration('use_rviz')
|
||||
urdf_file= LaunchConfiguration('urdf_file')
|
||||
robot_description_content = Command(
|
||||
[
|
||||
FindExecutable(name="xacro"), " ",
|
||||
PathJoinSubstitution(
|
||||
[FindPackageShare("roboasm_sgonov"), "urdf/roboasm_sgonov.urdf.xacro"]
|
||||
), " "
|
||||
# "robot_name:=", LaunchConfiguration("robot_name"), " ",
|
||||
# "sim:=", LaunchConfiguration("sim")
|
||||
]
|
||||
)
|
||||
declare_rviz_config_file_cmd = DeclareLaunchArgument(
|
||||
'rviz_config_file',
|
||||
default_value=os.path.join(bringup_dir, 'config', 'robasm_sgonov.rviz'),
|
||||
description= rviz_file)
|
||||
declare_use_robot_state_pub_cmd = DeclareLaunchArgument(
|
||||
'use_robot_state_pub',
|
||||
default_value='True',
|
||||
description='Whether to start the robot state publisher')
|
||||
declare_use_joint_state_pub_cmd = DeclareLaunchArgument(
|
||||
'use_joint_state_pub',
|
||||
default_value='True',
|
||||
description='Whether to start the joint state publisher')
|
||||
declare_use_rviz_cmd = DeclareLaunchArgument(
|
||||
'use_rviz',
|
||||
default_value='True',
|
||||
description='Whether to start RVIZ')
|
||||
|
||||
declare_urdf_cmd = DeclareLaunchArgument(
|
||||
'urdf_file',
|
||||
default_value=os.path.join(bringup_dir, 'urdf', 'roboasm_sgonov.urdf.xacro'),
|
||||
description='Whether to start RVIZ')
|
||||
|
||||
|
||||
start_robot_state_publisher_cmd = Node(
|
||||
condition=IfCondition(use_robot_state_pub),
|
||||
package='robot_state_publisher',
|
||||
executable='robot_state_publisher',
|
||||
name='robot_state_publisher',
|
||||
output='screen',
|
||||
#parameters=[{'use_sim_time': use_sim_time}],
|
||||
arguments=[robot_description_content])
|
||||
|
||||
start_joint_state_publisher_cmd = Node(
|
||||
condition=IfCondition(use_joint_state_pub),
|
||||
package='joint_state_publisher_gui',
|
||||
executable='joint_state_publisher_gui',
|
||||
name='joint_state_publisher_gui',
|
||||
output='screen',
|
||||
arguments=[robot_description_content])
|
||||
|
||||
rviz_cmd = Node(
|
||||
condition=IfCondition(use_rviz),
|
||||
package='rviz2',
|
||||
executable='rviz2',
|
||||
name='rviz2',
|
||||
arguments=['-d', rviz_config_file],
|
||||
output='screen')
|
||||
|
||||
|
||||
# Create the launch description and populate
|
||||
ld = LaunchDescription()
|
||||
|
||||
# Declare the launch options
|
||||
ld.add_action(declare_rviz_config_file_cmd)
|
||||
ld.add_action(declare_urdf_cmd)
|
||||
ld.add_action(declare_use_robot_state_pub_cmd)
|
||||
ld.add_action(declare_use_joint_state_pub_cmd)
|
||||
ld.add_action(declare_use_rviz_cmd)
|
||||
|
||||
|
||||
# Add any conditioned actions
|
||||
ld.add_action(start_joint_state_publisher_cmd)
|
||||
ld.add_action(start_robot_state_publisher_cmd)
|
||||
ld.add_action(rviz_cmd)
|
||||
|
||||
return ld
|
|
@ -1,315 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<sdf version='1.7'>
|
||||
<model name='roboasm_sgonov'>
|
||||
<link name='base'>
|
||||
<inertial>
|
||||
<pose>-0.000332 0.000107 -0.036421 0 -0 0</pose>
|
||||
<mass>1.31012</mass>
|
||||
<inertia>
|
||||
<ixx>0.00259584</ixx>
|
||||
<ixy>9.78631e-07</ixy>
|
||||
<ixz>-1.47312e-05</ixz>
|
||||
<iyy>0.00238835</iyy>
|
||||
<iyz>5.81914e-07</iyz>
|
||||
<izz>0.0043068</izz>
|
||||
</inertia>
|
||||
</inertial>
|
||||
<collision name='base_collision'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/base.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name='base_visual'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/base.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</visual>
|
||||
</link>
|
||||
<joint name='joint1' type='revolute'>
|
||||
<pose relative_to='base'>0 0 0 1.5708 0 -1.5708</pose>
|
||||
<parent>base</parent>
|
||||
<child>link1</child>
|
||||
<axis>
|
||||
<xyz>0 1 0</xyz>
|
||||
<limit>
|
||||
<lower>-1e+16</lower>
|
||||
<upper>1e+16</upper>
|
||||
</limit>
|
||||
<dynamics>
|
||||
<spring_reference>0</spring_reference>
|
||||
<spring_stiffness>0</spring_stiffness>
|
||||
</dynamics>
|
||||
</axis>
|
||||
</joint>
|
||||
<link name='link1'>
|
||||
<pose relative_to='joint1'>0 0 0 0 -0 0</pose>
|
||||
<inertial>
|
||||
<pose>0.028753 0.080526 0 0 -0 0</pose>
|
||||
<mass>0.52648</mass>
|
||||
<inertia>
|
||||
<ixx>0.00076496</ixx>
|
||||
<ixy>-3.5256e-05</ixy>
|
||||
<ixz>-2.8173e-10</ixz>
|
||||
<iyy>0.00038929</iyy>
|
||||
<iyz>1.9918e-09</iyz>
|
||||
<izz>0.00075521</izz>
|
||||
</inertia>
|
||||
</inertial>
|
||||
<collision name='link1_collision'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link1.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name='link1_visual'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link1.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</visual>
|
||||
</link>
|
||||
<joint name='joint2' type='revolute'>
|
||||
<pose relative_to='link1'>0 0.14172 0 0 -0 0</pose>
|
||||
<parent>link1</parent>
|
||||
<child>link2</child>
|
||||
<axis>
|
||||
<xyz>1 0 0</xyz>
|
||||
<limit>
|
||||
<lower>-1e+16</lower>
|
||||
<upper>1e+16</upper>
|
||||
</limit>
|
||||
<dynamics>
|
||||
<spring_reference>0</spring_reference>
|
||||
<spring_stiffness>0</spring_stiffness>
|
||||
</dynamics>
|
||||
</axis>
|
||||
</joint>
|
||||
<link name='link2'>
|
||||
<pose relative_to='joint2'>0 0 0 0 -0 0</pose>
|
||||
<inertial>
|
||||
<pose>-0.009842 0.025632 0 0 -0 0</pose>
|
||||
<mass>0.466449</mass>
|
||||
<inertia>
|
||||
<ixx>0.000250149</ixx>
|
||||
<ixy>-6.39625e-06</ixy>
|
||||
<ixz>1.16241e-09</ixz>
|
||||
<iyy>0.000302356</iyy>
|
||||
<iyz>-5.72107e-10</iyz>
|
||||
<izz>0.000264859</izz>
|
||||
</inertia>
|
||||
</inertial>
|
||||
<collision name='link2_collision'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link2.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name='link2_visual'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link2.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</visual>
|
||||
</link>
|
||||
<joint name='joint3' type='revolute'>
|
||||
<pose relative_to='link2'>0 0.081346 0 0 0.007194 0</pose>
|
||||
<parent>link2</parent>
|
||||
<child>link3</child>
|
||||
<axis>
|
||||
<xyz>0 1 0</xyz>
|
||||
<limit>
|
||||
<lower>-1e+16</lower>
|
||||
<upper>1e+16</upper>
|
||||
</limit>
|
||||
<dynamics>
|
||||
<spring_reference>0</spring_reference>
|
||||
<spring_stiffness>0</spring_stiffness>
|
||||
</dynamics>
|
||||
</axis>
|
||||
</joint>
|
||||
<link name='link3'>
|
||||
<pose relative_to='joint3'>0 0 0 0 -0 0</pose>
|
||||
<inertial>
|
||||
<pose>0.02151 0.069442 0 0 -0 0</pose>
|
||||
<mass>0.708169</mass>
|
||||
<inertia>
|
||||
<ixx>0.000864851</ixx>
|
||||
<ixy>-3.6232e-05</ixy>
|
||||
<ixz>-2.95541e-10</ixz>
|
||||
<iyy>0.000482144</iyy>
|
||||
<iyz>2.00354e-09</iyz>
|
||||
<izz>0.000860395</izz>
|
||||
</inertia>
|
||||
</inertial>
|
||||
<collision name='link3_collision'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link3.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name='link3_visual'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link3.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</visual>
|
||||
</link>
|
||||
<joint name='joint4' type='revolute'>
|
||||
<pose relative_to='link3'>0 0.14438 0 0 -0 0</pose>
|
||||
<parent>link3</parent>
|
||||
<child>link4</child>
|
||||
<axis>
|
||||
<xyz>1 0 0</xyz>
|
||||
<limit>
|
||||
<lower>-1e+16</lower>
|
||||
<upper>1e+16</upper>
|
||||
</limit>
|
||||
<dynamics>
|
||||
<spring_reference>0</spring_reference>
|
||||
<spring_stiffness>0</spring_stiffness>
|
||||
</dynamics>
|
||||
</axis>
|
||||
</joint>
|
||||
<link name='link4'>
|
||||
<pose relative_to='joint4'>0 0 0 0 -0 0</pose>
|
||||
<inertial>
|
||||
<pose>-0.009842 0.025632 0 0 -0 0</pose>
|
||||
<mass>0.466449</mass>
|
||||
<inertia>
|
||||
<ixx>0.000250149</ixx>
|
||||
<ixy>-6.39625e-06</ixy>
|
||||
<ixz>1.15938e-09</ixz>
|
||||
<iyy>0.000302356</iyy>
|
||||
<iyz>-5.70585e-10</iyz>
|
||||
<izz>0.000264859</izz>
|
||||
</inertia>
|
||||
</inertial>
|
||||
<collision name='link4_collision'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link4.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name='link4_visual'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link4.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</visual>
|
||||
</link>
|
||||
<joint name='joint5' type='revolute'>
|
||||
<pose relative_to='link4'>0 0.081346 0 0 -0 0</pose>
|
||||
<parent>link4</parent>
|
||||
<child>link5</child>
|
||||
<axis>
|
||||
<xyz>0 1 0</xyz>
|
||||
<limit>
|
||||
<lower>-1e+16</lower>
|
||||
<upper>1e+16</upper>
|
||||
</limit>
|
||||
<dynamics>
|
||||
<spring_reference>0</spring_reference>
|
||||
<spring_stiffness>0</spring_stiffness>
|
||||
</dynamics>
|
||||
</axis>
|
||||
</joint>
|
||||
<link name='link5'>
|
||||
<pose relative_to='joint5'>0 0 0 0 -0 0</pose>
|
||||
<inertial>
|
||||
<pose>0.02151 0.069442 0 0 -0 0</pose>
|
||||
<mass>0.708169</mass>
|
||||
<inertia>
|
||||
<ixx>0.000864851</ixx>
|
||||
<ixy>-3.6232e-05</ixy>
|
||||
<ixz>-2.95541e-10</ixz>
|
||||
<iyy>0.000482144</iyy>
|
||||
<iyz>2.00354e-09</iyz>
|
||||
<izz>0.000860395</izz>
|
||||
</inertia>
|
||||
</inertial>
|
||||
<collision name='link5_collision'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link5.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name='link5_visual'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link5.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</visual>
|
||||
</link>
|
||||
<link name='link6'>
|
||||
<pose relative_to='joint6'>0 0 0 0 -0 0</pose>
|
||||
<inertial>
|
||||
<pose>-0.010796 0.033705 6e-06 0 -0 0</pose>
|
||||
<mass>0.599356</mass>
|
||||
<inertia>
|
||||
<ixx>0.00028631</ixx>
|
||||
<ixy>-5.79904e-06</ixy>
|
||||
<ixz>6.26853e-08</ixz>
|
||||
<iyy>0.000358509</iyy>
|
||||
<iyz>-4.97585e-10</iyz>
|
||||
<izz>0.000295139</izz>
|
||||
</inertia>
|
||||
</inertial>
|
||||
<collision name='link6_collision'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link6.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name='link6_visual'>
|
||||
<pose>0 0 0 0 -0 0</pose>
|
||||
<geometry>
|
||||
<mesh>
|
||||
<scale>1 1 1</scale>
|
||||
<uri>model://roboasm_sgonov/meshes/link6.stl</uri>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
</sdf>
|
Loading…
Add table
Add a link
Reference in a new issue