Skip to content

dannyhung1128/spyndra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spyndra ROS

This project provides software architecture and controller in ROS for the open-source robotic platform Spyndra.

Installation

This project assumes using ROS Indigo.

  1. Suppose you have not created your ROS workspace, you can create one by the command:
$ mkdir -p ~/catkin_ws/src
  1. Go to the workspace and download the repository.
$ cd ~/catkin_ws/src
$ git clone https://github.com/dannyhung1128/spyndra.git
  1. Make sure you have ros packages.
$ sudo apt-get install ros-indigo-ros-control ros-indigo-ros-controllers
$ sudo apt-get install ros-indigo-gazebo-ros-control ros-indigo-effort-controllers ros-indigo-joint-state-controller ros-indigo-joint-trajectory-controller
  1. Check ROS dependencies.
$ rosdep update
$ rosdep check --from-paths src --ignore-src --rosdistro indigo

If any dependency is missing, you can auto-install them by the command

$ cd ~/catkin_ws
$ rosdep install --from-paths src --ignore-src --rosdistro indigo -y
  1. Verify installation bin usage.
$ source ~/catkin_ws/devel/setup.bash
  1. Build the source code.
$ cd ~/catkin_ws
$ catkin_make

After that, you are all set for this project.

Usage

  1. First, start the ros core by the command:
$ roscore
  1. Start running all the nodes
$ rosrun spyndra bno055_node.py
$ rosrun spyndra motor_control_node.py
$ rosrun spyndra spyndra_node.py
$ rosrun spyndra user.py
  1. Press number "1", "2", "3", "4" under terminal screen that is running "user.py" node to send motor command to spyndra. (Now it's still under development, so the command type maybe changed)

    1. "1" is for "cmd_1": standing Gait
    2. "2" is for "cmd_2": random Gait
    3. "3" is for "cmd_3": not yet assigned
    4. "4" is for "cmd_4": not yet assigned
  2. To check current motor signals sent to Spyndra by motor_control_node:

rostopic echo /motor_signal
  1. To check current IMU data published by bno055_node:
rostopic echo /imu/data
  1. IMU data will be automatically saved in "~/catkin_ws/src/spyndra/src/" with name "imu_data+time.bag" is ros bag format.

License

This work is licensed under MIT License.

About

Spyndra in ROS version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published