first commit

This commit is contained in:
andre neto
2024-01-15 12:27:47 +00:00
commit e230795cd9
364 changed files with 39952 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>p3dx_description</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>
+88
View File
@@ -0,0 +1,88 @@
cmake_minimum_required(VERSION 2.8.3)
project(p3dx_description)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
urdf
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()
#######################################
## Declare ROS messages and services ##
#######################################
## Generate messages in the 'msg' folder
# add_message_files(
# FILES
# Message1.msg
# Message2.msg
# )
## Generate services in the 'srv' folder
# add_service_files(
# FILES
# Service1.srv
# Service2.srv
# )
## Generate added messages and services with any dependencies listed here
# generate_messages(
# DEPENDENCIES
# std_msgs # Or other packages containing msgs
# )
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES p3dx_description
# CATKIN_DEPENDS roscpp rospy urdf
# DEPENDS system_lib
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
${catkin_INCLUDE_DIRS}
)
## Declare a cpp library
# add_library(p3dx_description
# src/${PROJECT_NAME}/p3dx_description.cpp
# )
## Declare a cpp executable
# add_executable(p3dx_description src/main.cpp)
## Add cmake target dependencies of the executable/library
## as an example, message headers may need to be generated before nodes
# add_dependencies(p3dx_description_node p3dx_description_generate_messages_cpp)
## Specify libraries to link a library or executable target against
# target_link_libraries(p3dx_description_node
# ${catkin_LIBRARIES}
# )
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<launch>
<arg name="tf_prefix" default="robot_0"/>
<arg name="model" default="$(find p3dx_description)/urdf/pioneer3dx_fixed_joints.xml"/>
<!--<arg name="gui" default="False" />-->
<param name="robot_description" textfile="$(arg model)" />
<!--<param name="use_gui" value="$(arg gui)"/>-->
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher">
<param name="tf_prefix" value="$(arg tf_prefix)"/>
</node>
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher"/>
</launch>
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<launch>
<arg name="model" default="$(find p3dx_description)/urdf/pioneer3dx.xml"/>
<arg name="gui" default="False" />
<!--<arg name="prefix" default="" />-->
<param name="robot_description" textfile="$(arg model)" />
<param name="use_gui" value="$(arg gui)"/>
<!--<param name="tf_prefix" value="$(arg prefix)"/>-->
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher"/>
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
<!--<node name="rviz" pkg="rviz" type="rviz" args="-d $(find urdf_tutorial)/urdf.rviz" /> open standard rviz window -->
</launch>
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<launch>
<arg name="model" default="$(find p3dx_description)/urdf/pioneer3dx.xml"/>
<arg name="gui" default="False" />
<arg name="robot_name" default="ugv1" />
<param name="robot_description" textfile="$(arg model)" />
<param name="use_gui" value="$(arg gui)"/>
<param name="tf_prefix" value="$(arg robot_name)"/>
<node name="joint_state_publisher_$(arg robot_name)" pkg="joint_state_publisher" type="joint_state_publisher"/>
<node name="robot_state_publisher_$(arg robot_name)" pkg="robot_state_publisher" type="state_publisher" />
<!--<node name="rviz" pkg="rviz" type="rviz" args="-d $(find urdf_tutorial)/urdf.rviz" /> open standard rviz window -->
</launch>
+20
View File
@@ -0,0 +1,20 @@
=========================================
Location Coordinates (x,y,z)
=========================================
Chassis : -0.045 0 0.148
Top : -0.045 0 0.234
Swivel : -0.185 0 0.055
Center Hubcap : -0.211 0 0.037
Center Wheel : -0.211 0 0.038
Right Hubcap : 0 0.158 0.091
Right Wheel : 0 0.158 0.091
Left Hubcap : 0 -0.158 0.091
Left Wheel : 0 -0.158 0.091
Front Sonar : -0.2 0 0.209
Back Sonar : 0.109 0 0.209
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<package>
<name>p3dx_description</name>
<version>0.1.0</version>
<description>
A Pioneer 3DX description for Gazebo. First working version
</description>
<maintainer email="rafael.berkvens@uantwerpen.be">Rafael Berkvens</maintainer>
<license>GPLv3</license>
<url>https://github.com/RafBerkvens/ua_ros_p3dx</url>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>urdf</build_depend>
<run_depend>roscpp</run_depend>
<run_depend>rospy</run_depend>
<run_depend>urdf</run_depend>
</package>
+50
View File
@@ -0,0 +1,50 @@
<?xml version="1.0"?>
<!--
These are some material descriptions of the Pioneer 3DX.
Copyright (C) 2013 Rafael Berkvens rafael.berkvens@uantwerpen.be
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This project is based on work by Tracy Davies, where it was in turn based on
work original in ucs-ros-pkg.
-->
<robot>
<material name="ChassisRed">
<color rgba="0.851 0.0 0.0 1.0"/>
</material>
<material name="SonarYellow">
<color rgba="0.715 0.583 0.210 1.0"/>
</material>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1.0"/>
</material>
<material name="HubcapYellow">
<color rgba="1.0 0.811 0.151 1.0"/>
</material>
<material name="ChassisRed">
<color rgba="0.8 0.0 0.0 1.0"/>
</material>
<material name="TopBlack">
<color rgba="0.038 0.038 0.038 1.0"/>
</material>
</robot>
+135
View File
@@ -0,0 +1,135 @@
<?xml version="1.0"?>
<!--
This is the gazebo urdf description of a Pioneer 3DX.
Copyright (C) 2013 Rafael Berkvens rafael.berkvens@uantwerpen.be
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<robot>
<!-- properties (constants) -->
<property name="ns" value="p3dx" />
<!-- ros_control plugin -->
<gazebo>
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
<robotNamespace>/${ns}</robotNamespace>
</plugin>
</gazebo>
<!-- base_link -->
<gazebo reference="base_link">
<material>Gazebo/Red</material>
</gazebo>
<!-- top_plate -->
<gazebo reference="top_plate">
<material>Gazebo/Black</material>
</gazebo>
<!-- swivel -->
<gazebo reference="swivel">
<material>Gazebo/Grey</material>
</gazebo>
<!-- center_hubcap -->
<gazebo reference="center_hubcap">
<material>Gazebo/Grey</material>
</gazebo>
<!-- center_wheel -->
<gazebo reference="center_wheel">
<material>Gazebo/Black</material>
<mu1>10.0</mu1>
<mu2>10.0</mu2>
<kp>1000000.0</kp>
<kd>1.0</kd>
</gazebo>
<!-- front_sonar -->
<gazebo reference="front_sonar">
<material value="Gazebo/Yellow" />
</gazebo>
<!-- differential drive -->
<gazebo>
<plugin name="differential_drive_controller" filename="libgazebo_ros_diff_drive.so">
<alwaysOn>true</alwaysOn>
<updateRate>100</updateRate>
<leftJoint>base_right_wheel_joint</leftJoint>
<rightJoint>base_left_wheel_joint</rightJoint>
<wheelSeparation>0.39</wheelSeparation>
<wheelDiameter>0.15</wheelDiameter>
<torque>5</torque>
<commandTopic>cmd_vel</commandTopic>
<odometryTopic>odom</odometryTopic>
<odometryFrame>odom</odometryFrame>
<robotBaseFrame>base_link</robotBaseFrame>
</plugin>
</gazebo>
<!-- ground truth -->
<gazebo>
<plugin name="p3d_base_controller" filename="libgazebo_ros_p3d.so">
<alwaysOn>true</alwaysOn>
<updateRate>100.0</updateRate>
<bodyName>base_link</bodyName>
<topicName>${ns}/base_pose_ground_truth</topicName>
<gaussianNoise>0.01</gaussianNoise>
<frameName>map</frameName>
<!-- initialize odometry for fake localization -->
<xyzOffsets>0 0 0</xyzOffsets>
<rpyOffsets>0 0 0</rpyOffsets>
</plugin>
</gazebo>
<!-- lms100 -->
<gazebo reference="lms100">
<sensor type="ray" name="head_hokuyo_sensor">
<pose>0 0 0 0 0 0</pose>
<visualize>false</visualize>
<update_rate>50</update_rate>
<ray>
<scan>
<horizontal>
<samples>360</samples>
<resolution>1</resolution>
<min_angle>-1.570796</min_angle>
<max_angle>1.570796</max_angle>
</horizontal>
</scan>
<range>
<min>0.10</min>
<max>30.0</max>
<resolution>0.01</resolution>
</range>
<noise>
<type>gaussian</type>
<!-- Noise parameters based on published spec for Hokuyo laser achieving
"+-30mm" accuracy at range < 10m. A mean of 0.0m and stddev of 0.01m will
put 99.7% of samples within 0.03m of the true reading. -->
<mean>0.0</mean>
<stddev>0.01</stddev>
</noise>
</ray>
<plugin name="gazebo_ros_head_hokuyo_controller" filename="libgazebo_ros_laser.so">
<topicName>${ns}/laser/scan</topicName>
<frameName>lms100</frameName>
</plugin>
</sensor>
</gazebo>
</robot>
+262
View File
@@ -0,0 +1,262 @@
<?xml version="1.0"?>
<!--
This is the xacro description of a Pioneer 3DX, to be used in rviz and gazebo.
Copyright (C) 2013 Rafael Berkvens rafael.berkvens@uantwerpen.be
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This project is based on work by Tracy Davies, where it was in turn based on
work original in ucs-ros-pkg.
-->
<robot name="pioneer3dx" xmlns:xacro="http://ros.org/wiki/xacro">
<!-- import all gazebo-customization elements, including gazebo colors -->
<xacro:include filename="$(find p3dx_description)/urdf/pioneer3dx.gazebo" />
<!-- import the pioneer 3dx's wheels -->
<xacro:include filename="$(find p3dx_description)/urdf/pioneer3dx_wheel.xacro" />
<!-- chassis -->
<link name="base_link">
<inertial>
<mass value="3.5" />
<!--<origin xyz="-0.025 0 -0.223"/> -->
<origin xyz="-0.05 0 0" />
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1" />
</inertial>
<visual name="base_visual">
<origin xyz="-0.045 0 0.148" rpy="0 0 0" />
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/chassis.stl" />
</geometry>
<material name="ChassisRed">
<color rgba="0.851 0.0 0.0 1.0" />
</material>
</visual>
<collision>
<origin xyz="-0.045 0 0.145" rpy="0 0 0" />
<geometry>
<box size="0.35 0.25 0.14" />
</geometry>
</collision>
</link>
<!-- top_plate -->
<link name="top_plate">
<inertial>
<mass value="0.01" />
<origin xyz="0 0 0" />
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1" />
</inertial>
<visual name="base_visual">
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry name="top_geom">
<mesh filename="package://p3dx_description/meshes/top.stl" />
</geometry>
<material name="TopBlack">
<color rgba="0.038 0.038 0.038 1.0" />
</material>
</visual>
<collision>
<origin xyz="0.0 0 0" rpy="0 0 0" />
<geometry name="pioneer_geom">
<box size="0.45 0.38 0.01" />
</geometry>
</collision>
</link>
<joint name="base_top_joint" type="fixed">
<origin xyz="-0.045 0 0.234" rpy="0 0 0" />
<parent link="base_link" />
<child link="top_plate" />
</joint>
<!-- swivel -->
<link name="swivel">
<inertial>
<mass value="0.1" />
<origin xyz="0 0 0" />
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01" />
</inertial>
<visual name="base_visual">
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/swivel.stl" />
</geometry>
<material name="swivel">
<color rgba="0.5 0.5 0.5 1" />
</material>
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry>
<box size="0 0 0" />
</geometry>
</collision>
</link>
<joint name="base_swivel_joint" type="continuous">
<origin xyz="-0.185 0 0.055" rpy="0 0 0" />
<axis xyz="0 0 1" />
<anchor xyz="0 0 0" />
<limit effort="100" velocity="100" k_velocity="0" />
<joint_properties damping="0.0" friction="0.0" />
<parent link="base_link" />
<child link="swivel" />
</joint>
<!-- center_hubcap -->
<link name="center_hubcap">
<inertial>
<mass value="0.01" />
<origin xyz="0 0 0" />
<inertia ixx="0.012411765597" ixy="-0.000711733678" ixz="0.00050272983"
iyy="0.015218160428" iyz="-0.000004273467" izz="0.011763977943" />
</inertial>
<visual name="base_visual">
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/center_hubcap.stl" />
</geometry>
<material name="swivel">
<color rgba="0.5 0.5 0.5 1" />
</material>
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry>
<box size="0 0 0" />
</geometry>
</collision>
</link>
<joint name="swivel_hubcap_joint" type="continuous">
<origin xyz="-0.026 0 -0.016" rpy="0 0 0" />
<axis xyz="0 1 0" />
<anchor xyz="0 0 0" />
<limit effort="100" velocity="100" k_velocity="0" />
<joint_properties damping="0.0" friction="0.0" />
<parent link="swivel" />
<child link="center_wheel" />
</joint>
<!-- center_wheel -->
<link name="center_wheel">
<inertial>
<mass value="0.1" />
<origin xyz="0 0 0" />
<inertia ixx="0.012411765597" ixy="-0.000711733678" ixz="0.00050272983"
iyy="0.015218160428" iyz="-0.000004273467" izz="0.011763977943" />
</inertial>
<visual name="base_visual">
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/center_wheel.stl" />
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1" />
</material>
</visual>
<collision>
<origin xyz="0 0 0" rpy="${-3.1415927/2.0} 0 0" />
<geometry>
<cylinder radius="0.0375" length="0.01" />
</geometry>
</collision>
</link>
<joint name="center_wheel_joint" type="fixed">
<origin xyz="-0.0035 0 -0.001" rpy="0 0 0"/>
<parent link="center_wheel"/>
<child link="center_hubcap"/>
</joint>
<xacro:p3dx_wheel suffix="left" parent="base_link" reflect="1"/>
<xacro:p3dx_wheel suffix="right" parent="base_link" reflect="-1"/>
<!-- front_sonar -->
<link name="front_sonar">
<inertial>
<mass value="0.0001" />
<origin xyz="0 0 0" />
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1" />
</inertial>
<visual name="front_sonar_vis">
<origin rpy="0 0 0" xyz="0 0 0" />
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/front_sonar.stl" />
</geometry>
<material name="SonarYellow">
<color rgba="0.715 0.583 0.210 1.0" />
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0" />
<geometry>
<box size="0 0 0" />
</geometry>
</collision>
</link>
<joint name="base_front_joint" type="fixed">
<origin rpy="0 0 0" xyz="0.109 0 0.209" />
<parent link="base_link" />
<child link="front_sonar" />
</joint>
<!-- lms100 laser -->
<link name="lms100">
<inertial>
<mass value="1e-5" />
<origin xyz="0 0 0" rpy="0 0 0" />
<inertia ixx="1e-6" ixy="0" ixz="0" iyy="1e-6" iyz="0" izz="1e-6" />
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry>
<mesh filename="package://p3dx_description/meshes/lms100.dae" />
</geometry>
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry>
<box size="0.1 0.1 0.1" />
</geometry>
</collision>
</link>
<joint name="lms100_joint" type="fixed">
<axis xyz="0 1 0" />
<origin xyz="0.16 0 0.15" rpy="0 0 0" />
<parent link="base_link" />
<child link="lms100" />
</joint>
</robot>
+470
View File
@@ -0,0 +1,470 @@
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from pioneer3dx.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<!--
This is the xacro description of a Pioneer 3DX, to be used in rviz and gazebo.
Copyright (C) 2013 Rafael Berkvens rafael.berkvens@uantwerpen.be
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This project is based on work by Tracy Davies, where it was in turn based on
work original in ucs-ros-pkg.
-->
<robot name="pioneer3dx" xmlns:xacro="http://ros.org/wiki/xacro">
<!-- import all gazebo-customization elements, including gazebo colors -->
<gazebo>
<plugin filename="libgazebo_ros_control.so" name="gazebo_ros_control">
<robotNamespace>/p3dx</robotNamespace>
</plugin>
</gazebo>
<gazebo reference="base_link">
<material>Gazebo/Red</material>
</gazebo>
<gazebo reference="top_plate">
<material>Gazebo/Black</material>
</gazebo>
<gazebo reference="swivel">
<material>Gazebo/Grey</material>
</gazebo>
<gazebo reference="center_hubcap">
<material>Gazebo/Grey</material>
</gazebo>
<gazebo reference="center_wheel">
<material>Gazebo/Black</material>
<mu1>10.0</mu1>
<mu2>10.0</mu2>
<kp>1000000.0</kp>
<kd>1.0</kd>
</gazebo>
<gazebo reference="front_sonar">
<material value="Gazebo/Yellow"/>
</gazebo>
<gazebo>
<plugin filename="libgazebo_ros_diff_drive.so" name="differential_drive_controller">
<alwaysOn>true</alwaysOn>
<updateRate>100</updateRate>
<leftJoint>base_right_wheel_joint</leftJoint>
<rightJoint>base_left_wheel_joint</rightJoint>
<wheelSeparation>0.39</wheelSeparation>
<wheelDiameter>0.15</wheelDiameter>
<torque>5</torque>
<commandTopic>cmd_vel</commandTopic>
<odometryTopic>odom</odometryTopic>
<odometryFrame>odom</odometryFrame>
<robotBaseFrame>base_link</robotBaseFrame>
</plugin>
</gazebo>
<gazebo>
<plugin filename="libgazebo_ros_p3d.so" name="p3d_base_controller">
<alwaysOn>true</alwaysOn>
<updateRate>100.0</updateRate>
<bodyName>base_link</bodyName>
<topicName>p3dx/base_pose_ground_truth</topicName>
<gaussianNoise>0.01</gaussianNoise>
<frameName>map</frameName>
<!-- initialize odometry for fake localization -->
<xyzOffsets>0 0 0</xyzOffsets>
<rpyOffsets>0 0 0</rpyOffsets>
</plugin>
</gazebo>
<gazebo reference="lms100">
<sensor name="head_hokuyo_sensor" type="ray">
<pose>0 0 0 0 0 0</pose>
<visualize>false</visualize>
<update_rate>50</update_rate>
<ray>
<scan>
<horizontal>
<samples>360</samples>
<resolution>1</resolution>
<min_angle>-1.570796</min_angle>
<max_angle>1.570796</max_angle>
</horizontal>
</scan>
<range>
<min>0.10</min>
<max>30.0</max>
<resolution>0.01</resolution>
</range>
<noise>
<type>gaussian</type>
<!-- Noise parameters based on published spec for Hokuyo laser achieving
"+-30mm" accuracy at range < 10m. A mean of 0.0m and stddev of 0.01m will
put 99.7% of samples within 0.03m of the true reading. -->
<mean>0.0</mean>
<stddev>0.01</stddev>
</noise>
</ray>
<plugin filename="libgazebo_ros_laser.so" name="gazebo_ros_head_hokuyo_controller">
<topicName>p3dx/laser/scan</topicName>
<frameName>lms100</frameName>
</plugin>
</sensor>
</gazebo>
<!-- import the pioneer 3dx's wheels -->
<!-- chassis -->
<link name="base_link">
<inertial>
<mass value="3.5"/>
<!--<origin xyz="-0.025 0 -0.223"/> -->
<origin xyz="-0.05 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="-0.045 0 0.148"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/chassis.stl"/>
</geometry>
<material name="ChassisRed">
<color rgba="0.851 0.0 0.0 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="-0.045 0 0.145"/>
<geometry>
<box size="0.35 0.25 0.14"/>
</geometry>
</collision>
</link>
<!-- top_plate -->
<link name="top_plate">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="top_geom">
<mesh filename="package://p3dx_description/meshes/top.stl"/>
</geometry>
<material name="TopBlack">
<color rgba="0.038 0.038 0.038 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0.0 0 0"/>
<geometry name="pioneer_geom">
<box size="0.45 0.38 0.01"/>
</geometry>
</collision>
</link>
<joint name="base_top_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.045 0 0.234"/>
<parent link="base_link"/>
<child link="top_plate"/>
</joint>
<!-- swivel -->
<link name="swivel">
<inertial>
<mass value="0.1"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/swivel.stl"/>
</geometry>
<material name="swivel">
<color rgba="0.5 0.5 0.5 1"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_swivel_joint" type="continuous">
<origin rpy="0 0 0" xyz="-0.185 0 0.055"/>
<axis xyz="0 0 1"/>
<anchor xyz="0 0 0"/>
<limit effort="100" k_velocity="0" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>
<parent link="base_link"/>
<child link="swivel"/>
</joint>
<!-- center_hubcap -->
<link name="center_hubcap">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="-0.000711733678" ixz="0.00050272983" iyy="0.015218160428" iyz="-0.000004273467" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/center_hubcap.stl"/>
</geometry>
<material name="swivel">
<color rgba="0.5 0.5 0.5 1"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="swivel_hubcap_joint" type="continuous">
<origin rpy="0 0 0" xyz="-0.026 0 -0.016"/>
<axis xyz="0 1 0"/>
<anchor xyz="0 0 0"/>
<limit effort="100" k_velocity="0" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>
<parent link="swivel"/>
<child link="center_wheel"/>
</joint>
<!-- center_wheel -->
<link name="center_wheel">
<inertial>
<mass value="0.1"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="-0.000711733678" ixz="0.00050272983" iyy="0.015218160428" iyz="-0.000004273467" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/center_wheel.stl"/>
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1"/>
</material>
</visual>
<collision>
<origin rpy="-1.57079635 0 0" xyz="0 0 0"/>
<geometry>
<cylinder length="0.01" radius="0.0375"/>
</geometry>
</collision>
</link>
<joint name="center_wheel_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.0035 0 -0.001"/>
<parent link="center_wheel"/>
<child link="center_hubcap"/>
</joint>
<link name="p3dx_left_wheel">
<inertial>
<mass value="0.5"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/left_wheel.stl"/>
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1"/>
</material>
</visual>
<collision>
<origin rpy="-1.57079635 0 0" xyz="0 0 0"/>
<geometry>
<!--<mesh filename="package://p3dx_description/meshes/${suffix}_wheel.stl"/> -->
<cylinder length="0.01" radius="0.09"/>
</geometry>
</collision>
</link>
<joint name="base_left_hubcap_joint" type="fixed">
<origin rpy="0 0 0" xyz="0 0 0"/>
<parent link="p3dx_left_wheel"/>
<child link="p3dx_left_hubcap"/>
</joint>
<link name="p3dx_left_hubcap">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/left_hubcap.stl"/>
</geometry>
<material name="HubcapYellow">
<color rgba="1.0 0.811 0.151 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_left_wheel_joint" type="continuous">
<axis xyz="0 1 0"/>
<anchor xyz="0 0 0"/>
<limit effort="100" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>
<origin rpy="0 0 0" xyz="0 0.158 0.091"/>
<parent link="base_link"/>
<child link="p3dx_left_wheel"/>
</joint>
<transmission name="base_link_left_wheel_trans">
<type>pr2_mechanism_model/SimpleTransmission</type>
<joint name="base_left_wheel_joint"/>
<actuator name="base_left_wheel_motor">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>75.0676691729</mechanicalReduction>
</actuator>
</transmission>
<gazebo reference="p3dx_left_hubcap">
<material>Gazebo/Yellow</material>
</gazebo>
<gazebo reference="p3dx_left_wheel">
<material>Gazebo/Black</material>
<mu1>0.5</mu1>
<mu2>50.0</mu2>
<kp>100000000.0</kp>
<kd>1.0</kd>
</gazebo>
<link name="p3dx_right_wheel">
<inertial>
<mass value="0.5"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/right_wheel.stl"/>
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1"/>
</material>
</visual>
<collision>
<origin rpy="-1.57079635 0 0" xyz="0 0 0"/>
<geometry>
<!--<mesh filename="package://p3dx_description/meshes/${suffix}_wheel.stl"/> -->
<cylinder length="0.01" radius="0.09"/>
</geometry>
</collision>
</link>
<joint name="base_right_hubcap_joint" type="fixed">
<origin rpy="0 0 0" xyz="0 0 0"/>
<parent link="p3dx_right_wheel"/>
<child link="p3dx_right_hubcap"/>
</joint>
<link name="p3dx_right_hubcap">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/right_hubcap.stl"/>
</geometry>
<material name="HubcapYellow">
<color rgba="1.0 0.811 0.151 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_right_wheel_joint" type="continuous">
<axis xyz="0 1 0"/>
<anchor xyz="0 0 0"/>
<limit effort="100" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>
<origin rpy="0 0 0" xyz="0 -0.158 0.091"/>
<parent link="base_link"/>
<child link="p3dx_right_wheel"/>
</joint>
<transmission name="base_link_right_wheel_trans">
<type>pr2_mechanism_model/SimpleTransmission</type>
<joint name="base_right_wheel_joint"/>
<actuator name="base_right_wheel_motor">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>-75.0676691729</mechanicalReduction>
</actuator>
</transmission>
<gazebo reference="p3dx_right_hubcap">
<material>Gazebo/Yellow</material>
</gazebo>
<gazebo reference="p3dx_right_wheel">
<material>Gazebo/Black</material>
<mu1>0.5</mu1>
<mu2>50.0</mu2>
<kp>100000000.0</kp>
<kd>1.0</kd>
</gazebo>
<!-- front_sonar -->
<link name="front_sonar">
<inertial>
<mass value="0.0001"/>
<origin xyz="0 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="front_sonar_vis">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/front_sonar.stl"/>
</geometry>
<material name="SonarYellow">
<color rgba="0.715 0.583 0.210 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_front_joint" type="fixed">
<origin rpy="0 0 0" xyz="0.109 0 0.209"/>
<parent link="base_link"/>
<child link="front_sonar"/>
</joint>
<!-- lms100 laser -->
<link name="lms100">
<inertial>
<mass value="1e-5"/>
<origin rpy="0 0 0" xyz="0 0 0"/>
<inertia ixx="1e-6" ixy="0" ixz="0" iyy="1e-6" iyz="0" izz="1e-6"/>
</inertial>
<visual>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<mesh filename="package://p3dx_description/meshes/lms100.dae"/>
</geometry>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0.1 0.1 0.1"/>
</geometry>
</collision>
</link>
<joint name="lms100_joint" type="fixed">
<axis xyz="0 1 0"/>
<origin rpy="0 0 0" xyz="0.16 0 0.15"/>
<parent link="base_link"/>
<child link="lms100"/>
</joint>
</robot>
@@ -0,0 +1,470 @@
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from pioneer3dx.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<!--
This is the xacro description of a Pioneer 3DX, to be used in rviz and gazebo.
Copyright (C) 2013 Rafael Berkvens rafael.berkvens@uantwerpen.be
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This project is based on work by Tracy Davies, where it was in turn based on
work original in ucs-ros-pkg.
-->
<robot name="pioneer3dx" xmlns:xacro="http://ros.org/wiki/xacro">
<!-- import all gazebo-customization elements, including gazebo colors -->
<gazebo>
<plugin filename="libgazebo_ros_control.so" name="gazebo_ros_control">
<robotNamespace>/p3dx</robotNamespace>
</plugin>
</gazebo>
<gazebo reference="base_link">
<material>Gazebo/Red</material>
</gazebo>
<gazebo reference="top_plate">
<material>Gazebo/Black</material>
</gazebo>
<gazebo reference="swivel">
<material>Gazebo/Grey</material>
</gazebo>
<gazebo reference="center_hubcap">
<material>Gazebo/Grey</material>
</gazebo>
<gazebo reference="center_wheel">
<material>Gazebo/Black</material>
<mu1>10.0</mu1>
<mu2>10.0</mu2>
<kp>1000000.0</kp>
<kd>1.0</kd>
</gazebo>
<gazebo reference="front_sonar">
<material value="Gazebo/Yellow"/>
</gazebo>
<gazebo>
<plugin filename="libgazebo_ros_diff_drive.so" name="differential_drive_controller">
<alwaysOn>true</alwaysOn>
<updateRate>100</updateRate>
<leftJoint>base_right_wheel_joint</leftJoint>
<rightJoint>base_left_wheel_joint</rightJoint>
<wheelSeparation>0.39</wheelSeparation>
<wheelDiameter>0.15</wheelDiameter>
<torque>5</torque>
<commandTopic>cmd_vel</commandTopic>
<odometryTopic>odom</odometryTopic>
<odometryFrame>odom</odometryFrame>
<robotBaseFrame>base_link</robotBaseFrame>
</plugin>
</gazebo>
<gazebo>
<plugin filename="libgazebo_ros_p3d.so" name="p3d_base_controller">
<alwaysOn>true</alwaysOn>
<updateRate>100.0</updateRate>
<bodyName>base_link</bodyName>
<topicName>p3dx/base_pose_ground_truth</topicName>
<gaussianNoise>0.01</gaussianNoise>
<frameName>map</frameName>
<!-- initialize odometry for fake localization -->
<xyzOffsets>0 0 0</xyzOffsets>
<rpyOffsets>0 0 0</rpyOffsets>
</plugin>
</gazebo>
<gazebo reference="lms100">
<sensor name="head_hokuyo_sensor" type="ray">
<pose>0 0 0 0 0 0</pose>
<visualize>false</visualize>
<update_rate>50</update_rate>
<ray>
<scan>
<horizontal>
<samples>360</samples>
<resolution>1</resolution>
<min_angle>-1.570796</min_angle>
<max_angle>1.570796</max_angle>
</horizontal>
</scan>
<range>
<min>0.10</min>
<max>30.0</max>
<resolution>0.01</resolution>
</range>
<noise>
<type>gaussian</type>
<!-- Noise parameters based on published spec for Hokuyo laser achieving
"+-30mm" accuracy at range < 10m. A mean of 0.0m and stddev of 0.01m will
put 99.7% of samples within 0.03m of the true reading. -->
<mean>0.0</mean>
<stddev>0.01</stddev>
</noise>
</ray>
<plugin filename="libgazebo_ros_laser.so" name="gazebo_ros_head_hokuyo_controller">
<topicName>p3dx/laser/scan</topicName>
<frameName>lms100</frameName>
</plugin>
</sensor>
</gazebo>
<!-- import the pioneer 3dx's wheels -->
<!-- chassis -->
<link name="base_link">
<inertial>
<mass value="3.5"/>
<!--<origin xyz="-0.025 0 -0.223"/> -->
<origin xyz="-0.05 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="-0.045 0 0.148"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/chassis.stl"/>
</geometry>
<material name="ChassisRed">
<color rgba="0.851 0.0 0.0 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="-0.045 0 0.145"/>
<geometry>
<box size="0.35 0.25 0.14"/>
</geometry>
</collision>
</link>
<!-- top_plate -->
<link name="top_plate">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="top_geom">
<mesh filename="package://p3dx_description/meshes/top.stl"/>
</geometry>
<material name="TopBlack">
<color rgba="0.038 0.038 0.038 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0.0 0 0"/>
<geometry name="pioneer_geom">
<box size="0.45 0.38 0.01"/>
</geometry>
</collision>
</link>
<joint name="base_top_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.045 0 0.234"/>
<parent link="base_link"/>
<child link="top_plate"/>
</joint>
<!-- swivel -->
<link name="swivel">
<inertial>
<mass value="0.1"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/swivel.stl"/>
</geometry>
<material name="swivel">
<color rgba="0.5 0.5 0.5 1"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_swivel_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.185 0 0.055"/>
<!--<axis xyz="0 0 1"/>
<anchor xyz="0 0 0"/>
<limit effort="100" k_velocity="0" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>-->
<parent link="base_link"/>
<child link="swivel"/>
</joint>
<!-- center_hubcap -->
<link name="center_hubcap">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="-0.000711733678" ixz="0.00050272983" iyy="0.015218160428" iyz="-0.000004273467" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/center_hubcap.stl"/>
</geometry>
<material name="swivel">
<color rgba="0.5 0.5 0.5 1"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="swivel_hubcap_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.026 0 -0.016"/>
<!--<axis xyz="0 1 0"/>
<anchor xyz="0 0 0"/>
<limit effort="100" k_velocity="0" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>-->
<parent link="swivel"/>
<child link="center_wheel"/>
</joint>
<!-- center_wheel -->
<link name="center_wheel">
<inertial>
<mass value="0.1"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="-0.000711733678" ixz="0.00050272983" iyy="0.015218160428" iyz="-0.000004273467" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/center_wheel.stl"/>
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1"/>
</material>
</visual>
<collision>
<origin rpy="-1.57079635 0 0" xyz="0 0 0"/>
<geometry>
<cylinder length="0.01" radius="0.0375"/>
</geometry>
</collision>
</link>
<joint name="center_wheel_joint" type="fixed">
<origin rpy="0 0 0" xyz="-0.0035 0 -0.001"/>
<parent link="center_wheel"/>
<child link="center_hubcap"/>
</joint>
<link name="p3dx_left_wheel">
<inertial>
<mass value="0.5"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/left_wheel.stl"/>
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1"/>
</material>
</visual>
<collision>
<origin rpy="-1.57079635 0 0" xyz="0 0 0"/>
<geometry>
<!--<mesh filename="package://p3dx_description/meshes/${suffix}_wheel.stl"/> -->
<cylinder length="0.01" radius="0.09"/>
</geometry>
</collision>
</link>
<joint name="base_left_hubcap_joint" type="fixed">
<origin rpy="0 0 0" xyz="0 0 0"/>
<parent link="p3dx_left_wheel"/>
<child link="p3dx_left_hubcap"/>
</joint>
<link name="p3dx_left_hubcap">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/left_hubcap.stl"/>
</geometry>
<material name="HubcapYellow">
<color rgba="1.0 0.811 0.151 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_left_wheel_joint" type="fixed">
<!--<axis xyz="0 1 0"/>
<anchor xyz="0 0 0"/>
<limit effort="100" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>-->
<origin rpy="0 0 0" xyz="0 0.158 0.091"/>
<parent link="base_link"/>
<child link="p3dx_left_wheel"/>
</joint>
<transmission name="base_link_left_wheel_trans">
<type>pr2_mechanism_model/SimpleTransmission</type>
<joint name="base_left_wheel_joint"/>
<actuator name="base_left_wheel_motor">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>75.0676691729</mechanicalReduction>
</actuator>
</transmission>
<gazebo reference="p3dx_left_hubcap">
<material>Gazebo/Yellow</material>
</gazebo>
<gazebo reference="p3dx_left_wheel">
<material>Gazebo/Black</material>
<mu1>0.5</mu1>
<mu2>50.0</mu2>
<kp>100000000.0</kp>
<kd>1.0</kd>
</gazebo>
<link name="p3dx_right_wheel">
<inertial>
<mass value="0.5"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/right_wheel.stl"/>
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1"/>
</material>
</visual>
<collision>
<origin rpy="-1.57079635 0 0" xyz="0 0 0"/>
<geometry>
<!--<mesh filename="package://p3dx_description/meshes/${suffix}_wheel.stl"/> -->
<cylinder length="0.01" radius="0.09"/>
</geometry>
</collision>
</link>
<joint name="base_right_hubcap_joint" type="fixed">
<origin rpy="0 0 0" xyz="0 0 0"/>
<parent link="p3dx_right_wheel"/>
<child link="p3dx_right_hubcap"/>
</joint>
<link name="p3dx_right_hubcap">
<inertial>
<mass value="0.01"/>
<origin xyz="0 0 0"/>
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428" iyz="0" izz="0.011763977943"/>
</inertial>
<visual name="base_visual">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/right_hubcap.stl"/>
</geometry>
<material name="HubcapYellow">
<color rgba="1.0 0.811 0.151 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_right_wheel_joint" type="fixed">
<!--<axis xyz="0 1 0"/>
<anchor xyz="0 0 0"/>
<limit effort="100" velocity="100"/>
<joint_properties damping="0.0" friction="0.0"/>-->
<origin rpy="0 0 0" xyz="0 -0.158 0.091"/>
<parent link="base_link"/>
<child link="p3dx_right_wheel"/>
</joint>
<transmission name="base_link_right_wheel_trans">
<type>pr2_mechanism_model/SimpleTransmission</type>
<joint name="base_right_wheel_joint"/>
<actuator name="base_right_wheel_motor">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>-75.0676691729</mechanicalReduction>
</actuator>
</transmission>
<gazebo reference="p3dx_right_hubcap">
<material>Gazebo/Yellow</material>
</gazebo>
<gazebo reference="p3dx_right_wheel">
<material>Gazebo/Black</material>
<mu1>0.5</mu1>
<mu2>50.0</mu2>
<kp>100000000.0</kp>
<kd>1.0</kd>
</gazebo>
<!-- front_sonar -->
<link name="front_sonar">
<inertial>
<mass value="0.0001"/>
<origin xyz="0 0 0"/>
<inertia ixx="1" ixy="0" ixz="0" iyy="1" iyz="0" izz="1"/>
</inertial>
<visual name="front_sonar_vis">
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/front_sonar.stl"/>
</geometry>
<material name="SonarYellow">
<color rgba="0.715 0.583 0.210 1.0"/>
</material>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0 0 0"/>
</geometry>
</collision>
</link>
<joint name="base_front_joint" type="fixed">
<origin rpy="0 0 0" xyz="0.109 0 0.209"/>
<parent link="base_link"/>
<child link="front_sonar"/>
</joint>
<!-- lms100 laser -->
<link name="lms100">
<inertial>
<mass value="1e-5"/>
<origin rpy="0 0 0" xyz="0 0 0"/>
<inertia ixx="1e-6" ixy="0" ixz="0" iyy="1e-6" iyz="0" izz="1e-6"/>
</inertial>
<visual>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<mesh filename="package://p3dx_description/meshes/lms100.dae"/>
</geometry>
</visual>
<collision>
<origin rpy="0 0 0" xyz="0 0 0"/>
<geometry>
<box size="0.1 0.1 0.1"/>
</geometry>
</collision>
</link>
<joint name="lms100_joint" type="fixed">
<axis xyz="0 1 0"/>
<origin rpy="0 0 0" xyz="0.16 0 0.15"/>
<parent link="base_link"/>
<child link="lms100"/>
</joint>
</robot>
@@ -0,0 +1,130 @@
<?xml version="1.0"?>
<!--
This is the xacro description of a wheel of the Pioneer 3DX.
Copyright (C) 2013 Rafael Berkvens rafael.berkvens@uantwerpen.be
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This project is based on work by Tracy Davies, where it was in turn based on
work original in ucs-ros-pkg.
-->
<robot xmlns:xacro="http://ros.org/wiki/xacro">
<!-- properties (constants) -->
<property name="M_PI" value="3.14159" />
<!-- right/left hubcap + wheel -->
<xacro:macro name="p3dx_wheel" params="suffix parent reflect">
<!-- wheel -->
<link name="p3dx_${suffix}_wheel">
<inertial>
<mass value="0.5" />
<origin xyz="0 0 0" />
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428"
iyz="0" izz="0.011763977943" />
</inertial>
<visual name="base_visual">
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/${suffix}_wheel.stl" />
</geometry>
<material name="WheelBlack">
<color rgba="0.117 0.117 0.117 1" />
</material>
</visual>
<collision>
<origin xyz="0 0 0" rpy="${-3.1415927/2} 0 0" />
<geometry>
<!--<mesh filename="package://p3dx_description/meshes/${suffix}_wheel.stl"/> -->
<cylinder radius="0.09" length="0.01" />
</geometry>
</collision>
</link>
<joint name="base_${suffix}_hubcap_joint" type="fixed">
<origin xyz="0 0 0" rpy="0 0 0" />
<parent link="p3dx_${suffix}_wheel" />
<child link="p3dx_${suffix}_hubcap" />
</joint>
<!-- hubcap -->
<link name="p3dx_${suffix}_hubcap">
<inertial>
<mass value="0.01" />
<origin xyz="0 0 0" />
<inertia ixx="0.012411765597" ixy="0" ixz="0" iyy="0.015218160428"
iyz="0" izz="0.011763977943" />
</inertial>
<visual name="base_visual">
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry name="pioneer_geom">
<mesh filename="package://p3dx_description/meshes/${suffix}_hubcap.stl" />
</geometry>
<material name="HubcapYellow">
<color rgba="1.0 0.811 0.151 1.0" />
</material>
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0" />
<geometry>
<box size="0 0 0" />
</geometry>
</collision>
</link>
<joint name="base_${suffix}_wheel_joint" type="continuous">
<axis xyz="0 1 0" />
<anchor xyz="0 0 0" />
<limit effort="100" velocity="100" />
<joint_properties damping="0.0" friction="0.0" />
<origin xyz="0 ${reflect*0.158} 0.091" rpy="0 0 0" />
<parent link="base_link" />
<child link="p3dx_${suffix}_wheel" />
</joint>
<!-- gazebo elements -->
<transmission name="${parent}_${suffix}_wheel_trans">
<type>pr2_mechanism_model/SimpleTransmission</type>
<joint name="base_${suffix}_wheel_joint" />
<actuator name="base_${suffix}_wheel_motor">
<hardwareInterface>EffortJointInterface</hardwareInterface>
<mechanicalReduction>${reflect * 624/35 * 80/19}</mechanicalReduction>
</actuator>
</transmission>
<gazebo reference="p3dx_${suffix}_hubcap">
<material>Gazebo/Yellow</material>
</gazebo>
<gazebo reference="p3dx_${suffix}_wheel">
<material>Gazebo/Black</material>
<mu1>0.5</mu1>
<mu2>50.0</mu2>
<kp>100000000.0</kp>
<kd>1.0</kd>
</gazebo>
</xacro:macro>
</robot>