Skip to content

Commit

Permalink
init golf model
Browse files Browse the repository at this point in the history
  • Loading branch information
ismetatabay committed Jun 3, 2024
1 parent 5469d84 commit 1daa0aa
Show file tree
Hide file tree
Showing 13 changed files with 2,347 additions and 130 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5)
project(sample_vehicle_description)
project(golf_vehicle_description)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
Expand Down
13 changes: 13 additions & 0 deletions golf_vehicle_description/config/vehicle_info.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**:
ros__parameters:
wheel_radius: 0.315 #0.3935
wheel_width: 0.1
wheel_base: 2.64 # between front wheel center and rear wheel center
wheel_tread: 1.75 # between left wheel center and right wheel center
front_overhang: 0.99 # between front wheel center and vehicle front
rear_overhang: 0.81 # between rear wheel center and vehicle rear
left_overhang: 0.14 # between left wheel center and vehicle left
right_overhang: 0.14 # between right wheel center and vehicle right
vehicle_height: 1.86
max_steer_angle: 0.6105 # [rad] check again!(temp)

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>sample_vehicle_description</name>
<name>golf_vehicle_description</name>
<version>0.1.0</version>
<description>The sample_vehicle_description package</description>
<maintainer email="[email protected]">Ryohsuke Mitsudome</maintainer>
Expand Down
20 changes: 20 additions & 0 deletions golf_vehicle_description/urdf/vehicle.xacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<robot name="golf" xmlns:xacro="http://ros.org/wiki/xacro">

<!-- load parameter -->
<xacro:property
name="vehicle_info"
value="${load_yaml('$(find golf_vehicle_description)/config/vehicle_info.param.yaml')}"
/>

<!-- vehicle body -->
<link name="base_link">
<visual>
<!--<origin xyz="${vehicle_info['/**']['ros__parameters']['wheel_base']/2.0} 0 0" rpy="0 0 ${pi/2.0}"/>-->
<origin xyz="1.3772 0.0 0.0" rpy="0 0 ${pi/2.0}"/>
<geometry>
<mesh filename="package://golf_vehicle_description/mesh/golf.dae" scale="1 1 1"/>
</geometry>
</visual>
</link>
</robot>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5)
project(sample_vehicle_launch)
project(golf_vehicle_launch)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>sample_vehicle_launch</name>
<name>golf_vehicle_launch</name>
<version>0.1.0</version>
<description>The sample_vehicle_launch package</description>
<maintainer email="[email protected]">Ryohsuke Mitsudome</maintainer>
Expand Down
12 changes: 0 additions & 12 deletions sample_vehicle_description/config/vehicle_info.param.yaml

This file was deleted.

Binary file removed sample_vehicle_description/mesh/lexus.jpg
Binary file not shown.
15 changes: 0 additions & 15 deletions sample_vehicle_description/urdf/vehicle.xacro

This file was deleted.

0 comments on commit 1daa0aa

Please sign in to comment.