GithubHelp home page GithubHelp logo

coppeliarobotics / simros2 Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 15.0 1.5 MB

ROS 2 Interface for CoppeliaSim

License: Other

CMake 4.64% C++ 86.08% Lua 4.82% Python 3.19% C 1.27%
coppeliasim-plugin coppeliasim-plugin-simstubsgen

simros2's Introduction

ROS2 Interface plugin for CoppeliaSim

Supported ROS2 versions:

  • Humble Hawksbill

Compiling

NOTE: the directory containing all files (i.e. package.xml etc) must be called sim_ros2_interface, otherwise build will fail.

  1. Install required packages for simStubsGen: see simStubsGen's README
  2. Checkout
$ git clone https://github.com/CoppeliaRobotics/simROS2.git sim_ros2_interface
$ cd sim_ros2_interface
$ git checkout coppeliasim-v4.5.0-rev0

NOTE: replace coppeliasim-v4.5.0-rev0 with the actual CoppeliaSim version you have.

  1. Edit meta/interfaces.txt if you need to include more ROS interfaces. You need to specify the fully qualified interface, e.g. geometry_msgs/msg/Twist rather than Twist. If an interface uses non-primitive types (i.e. other interfaces), then those should be added as well.
  2. Compile
$ colcon build --symlink-install

Note: if you are reporting a compile error, please use this command to build:

VERBOSE=1 MAKEFLAGS=-j1 colcon build --symlink-install --event-handlers console_direct+ --parallel-workers 1

Add --cmake-args -DCMAKE_BUILD_TYPE=Debug if you are encountering a runtime error (e.g. crash, unexpected behavior, etc...).

Note: gcc can fail compile the plugin when a large number of interfaces is compiled in. Use clang in that case, i.e.:

sudo apt install clang
export CXX=clang++
colcon build ...

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.