Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.36 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!--
  3. \author   Raffaello Bonghi <raffaello@rnext.it
  4. \copyright Copyright (c) 2016, Raffaello Bonghi All rights reserved.
  5. Redistribution and use in source and binary forms, with or without
  6. modification, are permitted provided that the following conditions are met:
  7.     * Redistributions of source code must retain the above copyright
  8.       notice, this list of conditions and the following disclaimer.
  9.     * Redistributions in binary form must reproduce the above copyright
  10.       notice, this list of conditions and the following disclaimer in the
  11.       documentation and/or other materials provided with the distribution.
  12.     * Neither the name of Officine Robotiche nor the
  13.       names of its contributors may be used to endorse or promote products
  14.       derived from this software without specific prior written permission.
  15. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  16. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  17. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
  19. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  20. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  21. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  22. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  23. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  24. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. -->
  26. <launch>
  27.     <!-- Load robot description -->
  28.     <!-- In this launch file are initialized the /robot_description and
  29.     the robot_state_publisher to show all information about the joints. -->
  30.     <include file="$(find plutarco_description)/launch/description.launch" />
  31.  
  32.     <!-- ORBus hardware driver -->
  33.     <node pkg="orbus_interface" type="unav_node" name="unav" output="screen">
  34.         <!-- You can write the definition about the serial port configuration
  35.              and the controller and diagnostic frequency. -->
  36.         <rosparam subst_value="true">
  37.             serial_port: /dev/ttyTHS0
  38.             serial_rate: 115200
  39.             control_frequency: 10.0
  40.             diagnostic_frequency: 1.0
  41.         </rosparam>
  42.         <!-- Add your personal definition when the unav_node start -->
  43.         <rosparam command="load" file="$(find plutarco_control)/config/unav.yaml" />
  44.     </node>
  45.  
  46.     <!-- Differential controller parameters -->
  47.     <!-- In control.yaml you have the configuration for the two ROS controller
  48.     available in the unav_node: unav_joint_pubblisher and unav_velocity_controller
  49.     When all parameters all loaded you can spawn with the controller_manager.
  50.     READ inside the control.yaml to know all parameters -->
  51.     <rosparam command="load" file="$(find plutarco_control)/config/control.yaml" />
  52.  
  53.     <!-- Launch and running al controller -->
  54.     <node name="base_controller_spawner" pkg="controller_manager" type="spawner"
  55.             args="unav_joint_publisher unav_velocity_controller --shutdown-timeout 3"/>
  56.  
  57.     <!-- Diagnostic Aggregator -->
  58.     <node pkg="diagnostic_aggregator" type="aggregator_node" name="diagnostic_aggregator">
  59.         <rosparam command="load" file="$(find plutarco_control)/config/diagnostics.yaml"/>
  60.     </node>
  61. </launch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement