Coder Social home page Coder Social logo

ros2_udemy's Introduction

ROS2 Udemy Course Files

Edouard Renard's (Robotics Back-end) Udemy course that I took about ROS2

Small notes that i took along the course

  • We can modify the topic name of publisher/subscriber on runtime

    • ros2 run py_pkg_example smartphone --ros-args -r robot_news:=new_topic_name
    • ros2 run py_pkg_example robot_news_station --ros-args -r robot_news:=new_topic_name
  • We can also do the same for nodes

    • ros2 run py_pkg_example robot_news_station --ros-args -r __node:=new_node_name
  • Can do these both at the same time too

    • ros2 run cpp_pkg_example robot_news_station --ros-args -r __node:=new_node_name -r robot_news:=new_topic_name

alt text -> an example for node/topic name remapping

  • ros2 interface show example_interfaces/{msg, srv etc.}/{msg, service, ... etc.'s name}

    • This line gives us a brief explanation about data type of service, message etc. Quite useful
  • ros2 run py_pkg_example sum_server

  • ros2 service call /sum_service example_interfaces/srv/AddTwoInts "{a: 3, b: 5}"

    • For the services we create the server node, then with self.create_service we create a server for it
    • To use the service in the server we first run the server then we call the service with appropiate service name and give it the inputs that it gets.

ros2_udemy's People

Contributors

qdilmac 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.