BenBenBotKernal/Software/ROS_Driver/ROS1-driver/hoverboard_driver
詹力 9549fa8184 更新注释 2024-07-03 17:43:24 +08:00
..
config 上传ROS驱动 2024-07-03 17:19:25 +08:00
include/hoverboard_driver 更新注释 2024-07-03 17:43:24 +08:00
launch 上传ROS驱动 2024-07-03 17:19:25 +08:00
src 更新注释 2024-07-03 17:43:24 +08:00
CMakeLists.txt 上传ROS驱动 2024-07-03 17:19:25 +08:00
LICENSE 上传ROS驱动 2024-07-03 17:19:25 +08:00
README.md 上传ROS驱动 2024-07-03 17:19:25 +08:00
how to start.txt 上传ROS驱动 2024-07-03 17:19:25 +08:00
package.xml 上传ROS驱动 2024-07-03 17:19:25 +08:00

README.md

Usage

  1. Hoverboard port can be set as a "port" parameter in the node namespace. Check hoverboard.launch and 4x4.launch for examples of 2WD and 4WD configurations. 4WD config is purely for illustration on how to use several ports, but was not tested with two hoverboards.
  2. roslaunch hoverboard_driver hoverboard.launch
  3. Use any tool (keyboard_teleop, rqt) to send speed commands to hoverboard_velocity_controller/cmd_vel.

In 4x4 configuration, if you want to control both axis with the same cmd_vel, you can apply remapping as following:

<launch>
    <group ns="front">
        <param name="port" type="str" value="/dev/ttyTHS1"/>
        <remap from="/front/hoverboard_velocity_controller/cmd_vel" to="/cmd_vel"/>
        <include file="$(find hoverboard_driver)/launch/hoverboard.launch" />
    </group>
    <group ns="rear">
        <param name="port" type="str" value="/dev/ttyTHS2"/>
        <remap from="/rear/hoverboard_velocity_controller/cmd_vel" to="/cmd_vel"/>
        <include file="$(find hoverboard_driver)/launch/hoverboard.launch" />
    </group>
</launch>

DISCLAIMER

I bear no responsibility for any damage, direct or indirect, caused by using this project. Hoverboards are powerful and can be dangerous! Make sure you take all safety precautions!