mirror of
https://github.com/westonrobot/scout_ros.git
synced 2026-01-12 03:15:01 +08:00
removed unused files
This commit is contained in:
@@ -88,10 +88,4 @@ Another frequent usage would be using sensor fusion of an IMU. In such a scenari
|
|||||||
|
|
||||||
```
|
```
|
||||||
$ scout_bringup scout_minimal.launch odom_topic_name:="<custom_name>"
|
$ scout_bringup scout_minimal.launch odom_topic_name:="<custom_name>"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Summary of ROS packages
|
|
||||||
|
|
||||||
- scout_minimal.launch: Creates ros node that
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,6 +0,0 @@
|
|||||||
#VRML_SIM R2019a utf8
|
|
||||||
# license: Apache License 2.0
|
|
||||||
# license url: http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
# This is a proto file for Webots for the ScoutV2
|
|
||||||
# Extracted from: ./scout_v2.urdf
|
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ void ScoutROSMessenger::PublishSimStateToROS(double linear, double angular) {
|
|||||||
init_run = false;
|
init_run = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ROS_INFO("dt is %lg",dt);
|
|
||||||
|
|
||||||
// publish scout state message
|
// publish scout state message
|
||||||
scout_msgs::ScoutStatus status_msg;
|
scout_msgs::ScoutStatus status_msg;
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
<robot>
|
|
||||||
<joint name="hokuyo_joint" type="fixed">
|
|
||||||
<origin xyz="0.26 0 0.3" rpy="0 0 0"/>
|
|
||||||
<parent link="base_link"/>
|
|
||||||
<axis xyz="0 1 0" />
|
|
||||||
<child link="hokuyo_link"/>
|
|
||||||
</joint>
|
|
||||||
|
|
||||||
<!-- Hokuyo Laser -->
|
|
||||||
<link name="hokuyo_link">
|
|
||||||
<collision>
|
|
||||||
<origin xyz="0 0 0" rpy="0 0 0"/>
|
|
||||||
<geometry>
|
|
||||||
<box size="0.1 0.1 0.1"/>
|
|
||||||
</geometry>
|
|
||||||
</collision>
|
|
||||||
|
|
||||||
<visual>
|
|
||||||
<origin xyz="0 0 0" rpy="0 0 0"/>
|
|
||||||
<geometry>
|
|
||||||
<mesh filename="package://scout_description/meshes/hokuyo.dae"/>
|
|
||||||
</geometry>
|
|
||||||
</visual>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
</link>
|
|
||||||
</robot>
|
|
||||||
@@ -1,111 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Reference:
|
|
||||||
[1] https://answers.ros.org/question/246914/four-wheeled-skid-steering-in-gazebo-and-ros-using-gazebo-ros-control/
|
|
||||||
[2] https://answers.ros.org/question/10119/gazebo-controller-for-skid-steering/
|
|
||||||
[3] https://answers.ros.org/question/9640/rotation-error-in-gazebo-simulation/
|
|
||||||
[4] https://www.youtube.com/watch?v=fuRAv6PDwdw
|
|
||||||
-->
|
|
||||||
|
|
||||||
<robot xmlns:xacro="http://ros.org/wiki/xacro">
|
|
||||||
<xacro:include filename="$(find scout_description)/urdf/scout_wheel.gazebo" />
|
|
||||||
|
|
||||||
<!-- Additional definitions for simulation -->
|
|
||||||
<!-- <gazebo reference="base_link">
|
|
||||||
<material>Gazebo/Grey</material>
|
|
||||||
</gazebo> -->
|
|
||||||
|
|
||||||
<!-- Actuator configurations -->
|
|
||||||
<xacro:scout_wheel_transmission wheel_prefix="front_right" />
|
|
||||||
<xacro:scout_wheel_transmission wheel_prefix="front_left" />
|
|
||||||
<xacro:scout_wheel_transmission wheel_prefix="rear_left" />
|
|
||||||
<xacro:scout_wheel_transmission wheel_prefix="rear_right" />
|
|
||||||
|
|
||||||
<!-- Controller configurations -->
|
|
||||||
<gazebo>
|
|
||||||
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
|
|
||||||
<robotNamespace>$(arg robot_namespace)</robotNamespace>
|
|
||||||
</plugin>
|
|
||||||
</gazebo>
|
|
||||||
|
|
||||||
<!-- kp spring constant, kd damping constant -->
|
|
||||||
<gazebo>
|
|
||||||
<mu1 value="1.0"/>
|
|
||||||
<mu2 value="1.0"/>
|
|
||||||
<kp value="10000000.0" />
|
|
||||||
<kd value="1.0" />
|
|
||||||
<fdir1 value="1 0 0"/>
|
|
||||||
<minDepth value="0.001" />
|
|
||||||
<maxContacts value="64"/>
|
|
||||||
</gazebo>
|
|
||||||
|
|
||||||
<!-- hokuyo -->
|
|
||||||
<gazebo reference="hokuyo_link">
|
|
||||||
<sensor type="ray" name="head_hokuyo_sensor">
|
|
||||||
<pose>0 0 0 0 0 0</pose>
|
|
||||||
<visualize>false</visualize>
|
|
||||||
<update_rate>40</update_rate>
|
|
||||||
<ray>
|
|
||||||
<scan>
|
|
||||||
<horizontal>
|
|
||||||
<samples>720</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>/scan</topicName>
|
|
||||||
<frameName>hokuyo_link</frameName>
|
|
||||||
</plugin>
|
|
||||||
</sensor>
|
|
||||||
</gazebo>
|
|
||||||
|
|
||||||
<!-- <gazebo>
|
|
||||||
<plugin name="skid_steer_drive_controller" filename="libgazebo_ros_skid_steer_drive.so">
|
|
||||||
<updateRate>100.0</updateRate>
|
|
||||||
<robotNamespace></robotNamespace>
|
|
||||||
<leftFrontJoint>front_left_wheel</leftFrontJoint>
|
|
||||||
<rightFrontJoint>front_right_wheel</rightFrontJoint>
|
|
||||||
<leftRearJoint>rear_left_wheel</leftRearJoint>
|
|
||||||
<rightRearJoint>rear_right_wheel</rightRearJoint>
|
|
||||||
<wheelSeparation>4</wheelSeparation>
|
|
||||||
<wheelDiameter>0.32918</wheelDiameter>
|
|
||||||
<robotBaseFrame>base_link</robotBaseFrame>
|
|
||||||
<torque>1000</torque>
|
|
||||||
<commandTopic>cmd_vel</commandTopic>
|
|
||||||
<broadcastTF>true</broadcastTF>
|
|
||||||
<odometryTopic>odom</odometryTopic>
|
|
||||||
<odometryFrame>odom</odometryFrame>
|
|
||||||
<covariance_x>0.000100</covariance_x>
|
|
||||||
<covariance_y>0.000100</covariance_y>
|
|
||||||
<covariance_yaw>0.010000</covariance_yaw>
|
|
||||||
</plugin>
|
|
||||||
</gazebo> -->
|
|
||||||
|
|
||||||
<!-- <gazebo>
|
|
||||||
<plugin name="object_controller" filename="libgazebo_ros_planar_move.so">
|
|
||||||
<commandTopic>cmd_vel</commandTopic>
|
|
||||||
<odometryTopic>odom</odometryTopic>
|
|
||||||
<odometryFrame>odom</odometryFrame>
|
|
||||||
<odometryRate>20.0</odometryRate>
|
|
||||||
<robotBaseFrame>base_footprint</robotBaseFrame>
|
|
||||||
</plugin>
|
|
||||||
</gazebo> -->
|
|
||||||
</robot>
|
|
||||||
@@ -3,8 +3,7 @@
|
|||||||
<robot name="scout_v2"
|
<robot name="scout_v2"
|
||||||
xmlns:xacro="http://ros.org/wiki/xacro">
|
xmlns:xacro="http://ros.org/wiki/xacro">
|
||||||
|
|
||||||
<xacro:arg name="robot_namespace" default="/" />
|
<xacro:arg name="robot_namespace" default="/" />
|
||||||
<xacro:arg name="onboard_sensors" default="false" />
|
|
||||||
|
|
||||||
<xacro:include filename="$(find scout_description)/urdf/scout_wheel_type1.xacro" />
|
<xacro:include filename="$(find scout_description)/urdf/scout_wheel_type1.xacro" />
|
||||||
<xacro:include filename="$(find scout_description)/urdf/scout_wheel_type2.xacro" />
|
<xacro:include filename="$(find scout_description)/urdf/scout_wheel_type2.xacro" />
|
||||||
@@ -84,11 +83,4 @@
|
|||||||
<origin xyz="${-wheelbase/2} ${-track/2} ${wheel_vertical_offset}" rpy="3.14 0 0" />
|
<origin xyz="${-wheelbase/2} ${-track/2} ${wheel_vertical_offset}" rpy="3.14 0 0" />
|
||||||
</xacro:scout_wheel_type2>
|
</xacro:scout_wheel_type2>
|
||||||
|
|
||||||
<!-- Onboard sensors -->
|
|
||||||
<xacro:if value="$(arg onboard_sensors)">
|
|
||||||
<xacro:include filename="$(find scout_description)/urdf/onboard_sensors.urdf" />
|
|
||||||
</xacro:if>
|
|
||||||
|
|
||||||
<!-- Gazebo definitions -->
|
|
||||||
<xacro:include filename="$(find scout_description)/urdf/scout_v2.gazebo" />
|
|
||||||
</robot>
|
</robot>
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<!--
|
|
||||||
Software License Agreement (BSD)
|
|
||||||
|
|
||||||
\file scout_wheel.xacro (adapted from wheel.urdf.xacro in husky_description)
|
|
||||||
\authors Paul Bovbel <pbovbel@clearpathrobotics.com>
|
|
||||||
Ruixiang Du <ruixiang.du@westonrobot.com>
|
|
||||||
\copyright Copyright (c) 2015, Clearpath Robotics, Inc., All rights reserved.
|
|
||||||
\copyright Copyright (c) 2020, Weston Robot Pte. Ltd., All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
|
|
||||||
the following conditions are met:
|
|
||||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
|
||||||
following disclaimer.
|
|
||||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
|
||||||
following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
||||||
* Neither the name of Clearpath Robotics nor the names of its contributors may be used to endorse or promote
|
|
||||||
products derived from this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WAR-
|
|
||||||
RANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, IN-
|
|
||||||
DIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
|
||||||
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
||||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
||||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-->
|
|
||||||
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="scout_wheel">
|
|
||||||
|
|
||||||
<xacro:macro name="scout_wheel_transmission" params="wheel_prefix">
|
|
||||||
<transmission name="${wheel_prefix}_wheel_trans" type="SimpleTransmission">
|
|
||||||
<type>transmission_interface/SimpleTransmission</type>
|
|
||||||
<actuator name="${wheel_prefix}_wheel_motor">
|
|
||||||
<mechanicalReduction>1</mechanicalReduction>
|
|
||||||
</actuator>
|
|
||||||
<joint name="${wheel_prefix}_wheel">
|
|
||||||
<hardwareInterface>hardware_interface/VelocityJointInterface</hardwareInterface>
|
|
||||||
</joint>
|
|
||||||
</transmission>
|
|
||||||
</xacro:macro>
|
|
||||||
|
|
||||||
</robot>
|
|
||||||
Reference in New Issue
Block a user