Skip to content

Commit

Permalink
create dummy description and launcher pkgs
Browse files Browse the repository at this point in the history
Signed-off-by: Autumn60 <[email protected]>
  • Loading branch information
Autumn60 committed Aug 4, 2024
1 parent 3289efc commit 43accd2
Show file tree
Hide file tree
Showing 18 changed files with 169 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 3.5)
project(wheel_stuck_alpha_description)

find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

ament_auto_package(INSTALL_TO_SHARE
config
urdf

Check warning on line 9 in src/description/wheel_stuck_alpha/wheel_stuck_alpha_description/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (urdf)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**:
ros__parameters:
wheel_radius: 0.0 # [m]
wheel_tread: 0.0 # [m]
front_overhang: 0.0 # [m]
rear_overhang: 0.0 # [m]
left_overhang: 0.0 # [m]
right_overhang: 0.0 # [m]
robot_height: 0.0 # [m]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>wheel_stuck_alpha_description</name>
<version>0.1.0</version>
<description>The wheel_stuck_alpha_description package</description>
<maintainer email="[email protected]">Akiro Harada</maintainer>

<license>Apache 2</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<exec_depend>xacro</exec_depend>

Check warning on line 13 in src/description/wheel_stuck_alpha/wheel_stuck_alpha_description/package.xml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (xacro)

<test_depend>ament_lint_auto</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro">

Check warning on line 2 in src/description/wheel_stuck_alpha/wheel_stuck_alpha_description/urdf/robot.urdf.xacro

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (xacro)
<xacro:property name="robot_info" value="${xacro.load_yaml('$(find wheel_stuck_alpha_description)/config/robot_info.param.yaml')}"/>

Check warning on line 3 in src/description/wheel_stuck_alpha/wheel_stuck_alpha_description/urdf/robot.urdf.xacro

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (xacro)

Check warning on line 3 in src/description/wheel_stuck_alpha/wheel_stuck_alpha_description/urdf/robot.urdf.xacro

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (xacro)

<link name="base_link"/>
</robot>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.5)
project(wheel_stuck_alpha_launcher)

find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

ament_auto_package(INSTALL_TO_SHARE
launch
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<launch/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>wheel_stuck_alpha_launcher</name>
<version>0.1.0</version>
<description>The wheel_stuck_alpha_launcher package</description>
<maintainer email="[email protected]">Akiro Harada</maintainer>

<license>Apache 2</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<test_depend>ament_lint_auto</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 3.5)
project(wheel_stuck_alpha_sensor_kit_description)

find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

ament_auto_package(INSTALL_TO_SHARE
config
urdf

Check warning on line 9 in src/description/wheel_stuck_alpha/wheel_stuck_alpha_sensor_kit_description/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (urdf)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
base_link:
velodyne_base_link:
x: 0.0
y: 0.0
z: 0.0
roll: 0.0
pitch: 0.0
yaw: 0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>wheel_stuck_alpha_sensor_kit_description</name>
<version>0.1.0</version>
<description>The wheel_stuck_alpha_sensor_kit_description package</description>
<maintainer email="[email protected]">Akiro Harada</maintainer>

<license>Apache 2</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<test_depend>ament_lint_auto</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro">

Check warning on line 2 in src/description/wheel_stuck_alpha/wheel_stuck_alpha_sensor_kit_description/urdf/sensor_kit.urdf.xacro

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (xacro)
<xacro:property name="sensors_calibration" value="${xacro.load_yaml('$(find wheel_stuck_alpha_sensor_kit_description)/config/sensors_calibration.param.yaml')}"/>

Check warning on line 3 in src/description/wheel_stuck_alpha/wheel_stuck_alpha_sensor_kit_description/urdf/sensor_kit.urdf.xacro

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (xacro)

Check warning on line 3 in src/description/wheel_stuck_alpha/wheel_stuck_alpha_sensor_kit_description/urdf/sensor_kit.urdf.xacro

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (xacro)

<link name="velodyne_base_link"/>
<joint name="velodyne_base_joint" type="fixed">
<parent link="base_link"/>
<child link="velodyne_base_link"/>
<origin
xyz="${sensors_calibration['base_link']['velodyne_base_link']['x']}
${sensors_calibration['base_link']['velodyne_base_link']['y']}
${sensors_calibration['base_link']['velodyne_base_link']['z']}"
rpy="${sensors_calibration['base_link']['velodyne_base_link']['roll']}
${sensors_calibration['base_link']['velodyne_base_link']['pitch']}
${sensors_calibration['base_link']['velodyne_base_link']['yaw']}"
/>
</joint>
</robot>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.5)
project(wheel_stuck_alpha_sensor_kit_launcher)

find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

ament_auto_package(INSTALL_TO_SHARE
launch
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<launch/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>wheel_stuck_alpha_sensor_kit_launcher</name>
<version>0.1.0</version>
<description>The wheel_stuck_alpha_sensor_kit_launcher package</description>
<maintainer email="[email protected]">Akiro Harada</maintainer>

<license>Apache 2</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<test_depend>ament_lint_auto</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>
4 changes: 2 additions & 2 deletions src/launch/wheel_stuck_launcher/launch/wheel_stuck.launch.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<launch>
<!-- Essential parameters -->
<arg name="robot_model" default="wheel_stuck"/>
<arg name="sensor_kit_model" default="wheel_stuck_sensor_kit"/>
<arg name="robot_model" default="wheel_stuck_alpha"/>
<arg name="sensor_kit_model" default="wheel_stuck_alpha_sensor_kit"/>

<!-- Optional parameters -->
<arg name="launch_robot" default="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<arg name="robot_model"/>
<arg name="sensor_kit_model"/>

<arg name="xacro_file" default="$(find wheel_stuck_robot_description)/urdf/robot.urdf.xacro"/>
<arg name="xacro_file" default="$(find-pkg-share wheel_stuck_robot_launcher)/urdf/robot.urdf.xacro"/>
<node name="robot_state_publisher" pkg="robot_state_publisher" exec="robot_state_publisher">
<param name="robot_description" value="$(command 'xacro $(var xacro_file) robot_model:=$(var robot_model) sensor_kit_model:=$(var sensor_kit_model)' 'warn')"/>
</node>
Expand Down
9 changes: 7 additions & 2 deletions src/launch/wheel_stuck_robot_launcher/launch/robot.launch.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<launch>
<!-- Essential Parameters -->
<arg name="robot_model" default="wheel_stuck"/>
<arg name="sensor_kit_model" default="wheel_stuck_sensor_kit"/>
<arg name="robot_model"/>
<arg name="sensor_kit_model"/>

<include file="$(find-pkg-share wheel_stuck_robot_launcher)/launch/components/load_robot_info.launch.py">
<arg name="robot_model" value="$(var robot_model)"/>
Expand All @@ -11,4 +11,9 @@
<arg name="robot_model" value="$(var robot_model)"/>
<arg name="sensor_kit_model" value="$(var sensor_kit_model)"/>
</include>

<group>
<push-ros-namespace namespace="robot"/>
<include file="$(find-pkg-share $(var robot_model)_launcher)/launch/robot.launch.xml"/>
</group>
</launch>
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<launch>
<!-- Essential Parameters -->
<arg name="sensor_kit_model" default="wheel_stuck_sensor_kit"/>
<arg name="sensor_kit_model"/>

<group ns="sensing">
<include file="$(find-pkg-share $(var sensor_kit_model)_launcher)/launch/sensing.launch.xml"/>
<group>
<push-ros-namespace namespace="sensing"/>
<include file="$(find-pkg-share $(var sensor_kit_model)_launcher)/launch/sensor_kit.launch.xml"/>
</group>
</launch>

0 comments on commit 43accd2

Please sign in to comment.