-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ライントレース用のコースを作成 * コースを地面より0.01浮かせる * 動作周期を修正 Co-authored-by: Shota Aoki <[email protected]> * ラズパイマウスの初期位置を指定する引数を追加 * ラズパイマウスの初期位置をlaunchファイルから指定できるように変更 * モデル作成者の名前を変更 * blenderのモデルの作成者を変更 * コースモデルの大きさを修正 * コースモデルのスケールを修正 * コースモデルの作成者名を変更 * パネルの寸法が分かる名称に変更 * ワールド名を柔軟なものに変更 * 線の幅を4cmに変更 * READMEにモデル一覧を追加 --------- Co-authored-by: Shota Aoki <[email protected]>
- Loading branch information
1 parent
1c9901b
commit 78b5a51
Showing
13 changed files
with
523 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
raspimouse_gazebo/launch/raspimouse_with_line_follower_field.launch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# The MIT License (MIT) | ||
# | ||
# Copyright 2023 RT Corporation <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
# this software and associated documentation files (the "Software"), to deal in | ||
# the Software without restriction, including without limitation the rights to | ||
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
# the Software, and to permit persons to whom the Software is furnished to do so, | ||
# subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
import os | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
from launch import LaunchDescription | ||
from launch.actions import IncludeLaunchDescription | ||
from launch_ros.actions import SetParameter | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
|
||
|
||
def generate_launch_description(): | ||
world_file = os.path.join( | ||
get_package_share_directory('raspimouse_gazebo'), | ||
'worlds', | ||
'line_follower_field1.sdf') | ||
world_launch = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource([ | ||
get_package_share_directory('raspimouse_gazebo'), | ||
'/launch/raspimouse_with_emptyworld.launch.py']), | ||
launch_arguments={ | ||
'world_name': world_file, | ||
'spawn_x': '0.0', | ||
'spawn_y': '0.0', | ||
'spawn_z': '0.02' | ||
}.items() | ||
) | ||
|
||
return LaunchDescription([ | ||
SetParameter(name='use_sim_time', value=True), | ||
world_launch | ||
]) |
Binary file added
BIN
+13.5 KB
raspimouse_gazebo/models/course_curve_50x50cm/meshes/course_curve.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 115 additions & 0 deletions
115
raspimouse_gazebo/models/course_curve_50x50cm/meshes/course_curve_50x50cm.dae
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<asset> | ||
<contributor> | ||
<author>YusukeKato</author> | ||
<authoring_tool>Blender 4.0.0 commit date:2023-11-13, commit time:17:26, hash:878f71061b8e</authoring_tool> | ||
</contributor> | ||
<created>2023-11-16T14:58:23</created> | ||
<modified>2023-11-16T14:58:23</modified> | ||
<unit name="meter" meter="1"/> | ||
<up_axis>Z_UP</up_axis> | ||
</asset> | ||
<library_effects> | ||
<effect id="Material_001-effect"> | ||
<profile_COMMON> | ||
<newparam sid="course_curve_jpg-surface"> | ||
<surface type="2D"> | ||
<init_from>course_curve_jpg</init_from> | ||
</surface> | ||
</newparam> | ||
<newparam sid="course_curve_jpg-sampler"> | ||
<sampler2D> | ||
<source>course_curve_jpg-surface</source> | ||
</sampler2D> | ||
</newparam> | ||
<technique sid="common"> | ||
<lambert> | ||
<emission> | ||
<color sid="emission">0 0 0 1</color> | ||
</emission> | ||
<diffuse> | ||
<texture texture="course_curve_jpg-sampler" texcoord="Plane-mesh-map-0"/> | ||
</diffuse> | ||
<index_of_refraction> | ||
<float sid="ior">1.45</float> | ||
</index_of_refraction> | ||
</lambert> | ||
</technique> | ||
</profile_COMMON> | ||
</effect> | ||
</library_effects> | ||
<library_images> | ||
<image id="course_curve_jpg" name="course_curve_jpg"> | ||
<init_from>course_curve.jpg</init_from> | ||
</image> | ||
</library_images> | ||
<library_materials> | ||
<material id="Material_001-material" name="Material.001"> | ||
<instance_effect url="#Material_001-effect"/> | ||
</material> | ||
</library_materials> | ||
<library_geometries> | ||
<geometry id="Plane-mesh" name="Plane"> | ||
<mesh> | ||
<source id="Plane-mesh-positions"> | ||
<float_array id="Plane-mesh-positions-array" count="12">-0.5 -0.5 0 0.5 -0.5 0 -0.5 0.5 0 0.5 0.5 0</float_array> | ||
<technique_common> | ||
<accessor source="#Plane-mesh-positions-array" count="4" stride="3"> | ||
<param name="X" type="float"/> | ||
<param name="Y" type="float"/> | ||
<param name="Z" type="float"/> | ||
</accessor> | ||
</technique_common> | ||
</source> | ||
<source id="Plane-mesh-normals"> | ||
<float_array id="Plane-mesh-normals-array" count="3">0 0 1</float_array> | ||
<technique_common> | ||
<accessor source="#Plane-mesh-normals-array" count="1" stride="3"> | ||
<param name="X" type="float"/> | ||
<param name="Y" type="float"/> | ||
<param name="Z" type="float"/> | ||
</accessor> | ||
</technique_common> | ||
</source> | ||
<source id="Plane-mesh-map-0"> | ||
<float_array id="Plane-mesh-map-0-array" count="12">1.00069e-4 0.9999001 0.9998998 9.998e-5 0.9998999 0.9998998 1.00069e-4 0.9999001 9.998e-5 1.00131e-4 0.9998998 9.998e-5</float_array> | ||
<technique_common> | ||
<accessor source="#Plane-mesh-map-0-array" count="6" stride="2"> | ||
<param name="S" type="float"/> | ||
<param name="T" type="float"/> | ||
</accessor> | ||
</technique_common> | ||
</source> | ||
<vertices id="Plane-mesh-vertices"> | ||
<input semantic="POSITION" source="#Plane-mesh-positions"/> | ||
</vertices> | ||
<triangles material="Material_001-material" count="2"> | ||
<input semantic="VERTEX" source="#Plane-mesh-vertices" offset="0"/> | ||
<input semantic="NORMAL" source="#Plane-mesh-normals" offset="1"/> | ||
<input semantic="TEXCOORD" source="#Plane-mesh-map-0" offset="2" set="0"/> | ||
<p>1 0 0 2 0 1 0 0 2 1 0 3 3 0 4 2 0 5</p> | ||
</triangles> | ||
</mesh> | ||
</geometry> | ||
</library_geometries> | ||
<library_visual_scenes> | ||
<visual_scene id="Scene" name="Scene"> | ||
<node id="Plane" name="Plane" type="NODE"> | ||
<matrix sid="transform">0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 1</matrix> | ||
<instance_geometry url="#Plane-mesh" name="Plane"> | ||
<bind_material> | ||
<technique_common> | ||
<instance_material symbol="Material_001-material" target="#Material_001-material"> | ||
<bind_vertex_input semantic="Plane-mesh-map-0" input_semantic="TEXCOORD" input_set="0"/> | ||
</instance_material> | ||
</technique_common> | ||
</bind_material> | ||
</instance_geometry> | ||
</node> | ||
</visual_scene> | ||
</library_visual_scenes> | ||
<scene> | ||
<instance_visual_scene url="#Scene"/> | ||
</scene> | ||
</COLLADA> |
16 changes: 16 additions & 0 deletions
16
raspimouse_gazebo/models/course_curve_50x50cm/model.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
|
||
<model> | ||
<name>course_curve_50x50cm</name> | ||
<version>1.0</version> | ||
<sdf version="1.5">model.sdf</sdf> | ||
|
||
<author> | ||
<name>YusukeKato</name> | ||
<email>[email protected]</email> | ||
</author> | ||
|
||
<description> | ||
line follower course | ||
</description> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" ?> | ||
<sdf version="1.5"> | ||
<model name="course_curve_50x50cm"> | ||
<static>true</static> | ||
<link name="link"> | ||
<collision name="collision"> | ||
<pose>0 0 0 0 0 0</pose> | ||
<geometry> | ||
<mesh> | ||
<uri>model://course_curve_50x50cm/meshes/course_curve_50x50cm.dae</uri> | ||
<scale>1 1 1</scale> | ||
</mesh> | ||
</geometry> | ||
<surface> | ||
<friction> | ||
<ode> | ||
<mu>0.9</mu> | ||
<mu2>0.9</mu2> | ||
</ode> | ||
</friction> | ||
</surface> | ||
</collision> | ||
<visual name="visual"> | ||
<pose>0 0 0 0 0 0</pose> | ||
<geometry> | ||
<mesh> | ||
<uri>model://course_curve_50x50cm/meshes/course_curve_50x50cm.dae</uri> | ||
<scale>1 1 1</scale> | ||
</mesh> | ||
</geometry> | ||
</visual> | ||
</link> | ||
</model> | ||
</sdf> |
Binary file added
BIN
+5.82 KB
raspimouse_gazebo/models/course_straight_50x50cm/meshes/course_straight.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.