Code Monkey home page Code Monkey logo

bbblue_drivers's Introduction

bbblue_drivers

some ROS drivers for the Beaglbone Blue

WIP!!! Ugly code included!!!

The drivers use the librobotcontrol library by StrawsonDesign

Nodes overview

  • differential driver node using the onboard motor ports
  • publisher for IMU messages from MPU9250
  • publisher for battery state

Table of contents

Installation

TODO

Usage

Differential motor driver

Parameter

and default values

  • ~left_motor = 1
  • ~right_motor = 2
  • ~timeout = 5
  • ~maxspeed = 0.4
  • ~minspeed = 0.1
  • ~wheelbase = 0.2
  • ~turnspeed = 1
  • ~duty_factor = 1 - velocity to PWM duty cycle factor (simple linear approach)

Run

rosrun bbblue_drivers diff_motor_driver

rosrun bbblue_drivers diff_motor_driver _left_motor:=3 _right_motor:=4 _minspeed:=0.137 _maxspeed:=0.364 _duty_factor:=2.2

Publish to cmd_vel manually

`rostopic pub -1 /cmd_vel geometry_msgs/Twist -- '[1.0, 0.0, 0.0]' '[0.0, 0.0, 0]'``

Battery state node

Parameter

and default values

  • ~power_supply_technology = 3
  • ~min_cell_voltage = 3.3 ( 0% )
  • ~max_cell_voltage = 4.15 ( 100% )

Run

rosrun bbblue_drivers battery_state

IMU node

Parameter

and default values

  • ~frame_id = imu_link
  • ~linear_acceleration_stddev = 0.04
  • ~angular_velocity_stddev = 0.02
  • ~orientation_stddev = 0.0025
  • ~magnetometer_stddev = 0.04

covariances used from razor_imu_9dof https://github.com/KristofRobot/razor_imu_9dof/blob/indigo-devel/nodes/imu_node.py

Run

Start the IMU node

rosrun bbblue_drivers imu_pub_node

Visualizing IMU with rviz

A static transformation is required:

rosrun tf static_transform_publisher 0.0 0.0 0.0 0 0 0 map imu_link 10

The Beaglebone Blue has no display port. So for visualization an aditional system is required.

export ROS_MASTER_URI=http://rosbot:11311

Starting rviz after exporting the MASTER usxbrix

rviz

red - x green - y blue -z

optional IMU tools

sudo apt-get install ros-melodic-imu-tools

rosrun imu_filter_madgwick imu_filter_node

Contributing

Pull requests and issues are welcome.

Credits

librobotcontrol

bbblue_drivers's People

Contributors

uweswrtz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bbblue_drivers's Issues

rc/mpu.h is missing

On catkin_make i get this error

/home/ubuntu/catkin_ws/src/bbblue_drivers/src/bb-blue-imu-mpu9250-node.cpp:40:20: fatal error: rc/mpu.h: No such file or directory
compilation terminated.
bbblue_drivers/CMakeFiles/imu_pub_node.dir/build.make:62: recipe for target 'bbblue_drivers/CMakeFiles/imu_pub_node.dir/src/bb-blue-imu-mpu9250-node.cpp.o' failed
make[2]: *** [bbblue_drivers/CMakeFiles/imu_pub_node.dir/src/bb-blue-imu-mpu9250-node.cpp.o] Error 1
CMakeFiles/Makefile2:1650: recipe for target 'bbblue_drivers/CMakeFiles/imu_pub_node.dir/all' failed
make[1]: *** [bbblue_drivers/CMakeFiles/imu_pub_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1 -l1" failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.