Coder Social home page Coder Social logo

studio45_hackathon's Introduction

Studio 45 Hackathon!

Getting Started

Everything will be based off Ubuntu 22.04.

ROS2

  1. Install ROS2 Iron
  2. Add: source /opt/ros/iron/setup.bash to your .bashrc file
  3. Check you can run ros2

MoveIt

  1. Install Eclipse Cyclone DDS
  2. Add export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp to .bashrc
  3. Check you can run ros2 in a new terminal
  4. Install MoveIt2

General Dependencies

We use moveit visulization tools.

sudo apt install ros-iron-moveit-visual-tools

XARM Dependencies

We've cloned xarm libraries as a submodule: https://github.com/xArm-Developer/xarm_ros2/tree/rolling

We need to install the dependencies. Make sure your submodules are updated first and you're on the rolling branch.

  1. cd dev_ws/src
  2. rosdep update
  3. rosdep install --from-paths . --ignore-src --rosdistro iron -y

Check you can build.

  1. cd dev_ws
  2. colcon build

Optional: Add source <input path to repo>/dev_ws/install/setup.bash to .bashrc. If you don't add this, remember to source it everytime you need to use ros.

Setting Up The Arm

TODO: Need to configure network settings and connect to the local network of the arm. This step is not needed if you're simulating.

Running

Make sure everything is sourced (ros, and the installation)

  1. cd dev_ws
  2. colcon build

IMPORTANT: Gripper doesn't quite work right now for some reason. It just crashed the node.

# 【simulated Lite6】launch xarm_planner_node
ros2 launch xarm_planner lite6_planner_fake.launch.py [add_gripper:=true]
# 【real Lite6】launch xarm_planner_node
ros2 launch xarm_planner lite6_planner_realmove.launch.py robot_ip:=192.168.1.185 [add_gripper:=true]

This above command runs the ros2/moveit nodes for us to interact with the arm. Keep this running in a terminal.

  1. Run a test (note if you ran realmove, the arm will move. Be careful!)
ros2 launch planner planner.launch.py dof:=6 robot_type:=lite

If you see the arm move, or the simulation move. You have set this up correctly!

Developing

There's a basic planner package that you can investigate. Be sure to source all the required dependencies.

  1. cd dev_ws
  2. colcon build --packages-up-to planner

Build the planner package and all of its dependencies

  1. ros2 launch planner planner.launch.py dof:=6 robot_type:=lite

studio45_hackathon's People

Contributors

jqphu avatar tim-thacker-nullify avatar

Watchers

Tristan Heywood avatar  avatar  avatar

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.