Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_hokuyo_laser2d_description
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
ros
sensors
ranger2d
iri_hokuyo_laser2d_description
Commits
2efc5759
Commit
2efc5759
authored
6 years ago
by
Fernando Herrero
Browse files
Options
Downloads
Patches
Plain Diff
Fix namespaces
parent
8acbfae7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
urdf/hokuyo_laser2d.xacro
+16
-7
16 additions, 7 deletions
urdf/hokuyo_laser2d.xacro
urdf/hokuyo_laser2d_example.xacro
+1
-1
1 addition, 1 deletion
urdf/hokuyo_laser2d_example.xacro
with
17 additions
and
8 deletions
urdf/hokuyo_laser2d.xacro
+
16
−
7
View file @
2efc5759
...
...
@@ -3,8 +3,17 @@
<root
xmlns:xacro=
"http://ros.org/wiki/xacro"
>
<xacro:include
filename=
"$(find iri_laser2d_gazebo)/urdf/laser2d.gazebo"
/>
<xacro:macro
name=
"hokuyo_laser2d"
params=
"name parent resolution model *origin"
>
<xacro:property
name=
"default_config"
value=
"$(find iri_laser2d_gazebo)/config/hokuyo_utm30lx.yaml"
/>
<xacro:macro
name=
"hokuyo_laser2d"
params=
"name:=main
prefix:=robot
parent:=base
mesh_resolution:=low
config_file:=${default_config}
model:=utm30lx
*origin"
>
<link
name=
"${name}_hokuyo_base"
>
<inertial>
...
...
@@ -17,7 +26,7 @@
<visual>
<origin
xyz=
"0 0 0"
rpy=
"0 0 0"
/>
<geometry>
<mesh
filename=
"package://iri_hokuyo_laser2d_description/meshes/${resolution}_hokuyo_${model}.stl"
/>
<mesh
filename=
"package://iri_hokuyo_laser2d_description/meshes/${
mesh_
resolution}_hokuyo_${model}.stl"
/>
</geometry>
<material
name=
"DarkGrey"
>
<color
rgba=
"0.2 0.2 0.2 1.0"
/>
...
...
@@ -37,16 +46,16 @@
<xacro:insert_block
name=
"origin"
/>
</joint>
<link
name=
"${name}_hokuyo_s
ens
e"
>
<link
name=
"${name}_hokuyo_s
can_fram
e"
>
</link>
<joint
name=
"joint_${name}_hokuyo_base_to_${name}_hokuyo_s
ens
e"
type=
"fixed"
>
<joint
name=
"joint_${name}_hokuyo_base_to_${name}_hokuyo_s
can_fram
e"
type=
"fixed"
>
<parent
link=
"${name}_hokuyo_base"
/>
<child
link=
"${name}_hokuyo_s
ens
e"
/>
<child
link=
"${name}_hokuyo_s
can_fram
e"
/>
<origin
xyz=
"0.0 0.0 0.05625"
rpy=
"0 0 0"
/>
</joint>
<xacro:iri_laser2d_gazebo
name=
"${name}_hokuyo"
model=
"hokuyo_${model
}"
/>
<xacro:iri_laser2d_gazebo
name=
"${name}_hokuyo"
prefix=
"${prefix}"
config_file=
"${config_file
}"
/>
</xacro:macro>
...
...
This diff is collapsed.
Click to expand it.
urdf/hokuyo_laser2d_example.xacro
+
1
−
1
View file @
2efc5759
...
...
@@ -27,7 +27,7 @@
</collision>
</link>
<xacro:hokuyo_laser2d
name=
"top"
parent=
"hokuyo_base"
resolution=
"low_res"
model=
"utm30lx"
>
<xacro:hokuyo_laser2d
name=
"top"
prefix=
"robot"
parent=
"hokuyo_base"
resolution=
"low_res"
model=
"utm30lx"
>
<origin
xyz=
"0.0 0.0 0.5"
rpy=
"0 0 0"
/>
</xacro:hokuyo_laser2d>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment