Giter Club home page Giter Club logo

ros_sm's Introduction

ros_sm

Toy state machine in ROS

Docker

  1. Build image

    docker build --file docker/Dockerfile --tag ros_sm .
    
  2. Run container (in WSL). Default container name is ros_sm

    ./docker/docker.sh
    
    • Make sure to check that docker/docker.sh points to correct docker image.
  3. Remember to build the ROS 2 packages before use. In ros2_ws/,

    colcon build
    
    • Add --symlink-install to avoid having to rebuild each time source files are edited.
    • Add --packages-select <package name> to build specific packages only.
  4. Remember to source the ROS 2 workspace before use. In ros2_ws/,

    . install/local_setup.bash
    

Simple Action

  1. In one terminal, run the server.

    ros2 run action_servers simple_action_server
    
  2. In another terminal, send request to action server.

    ros2 action send_goal simple_action custom_action_interfaces/action/Simpleaction "{simple_request: 3}"
    
    • Add --feedback to display feedback messages.

Command Line Publisher

To send instructions to the ROS state machine via CLI.

  1. In one terminal, run the state machine.

    ros2 run ros_sm ros_sm
    
  2. In another terminal, run the command line publisher.

    ros2 run cmdline_publisher cmdline_publisher
    

ros_sm's People

Contributors

jonyktan avatar

Watchers

 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.