Skip to content

dqrobotics/cpp-interface-vrep

Repository files navigation

cpp-interface-vrep CPP Build

Vrep interface for the dqrobotics in C++

Refer to the docs.

Workflow cpp-interface-vrep

The following instructions describe the workflow to create a cpp-interface-vrep branch with a specific version of CoppeliaSim.

  • Clone the repository

    git clone https://github.com/dqrobotics/cpp-interface-vrep.git --recursive && cd cpp-interface-vrep
  • Create a new branch using the following format name: master-v{x.y.z}-rev{w}, where {x.y.z}-rev{w}` correspond to the version of CoppeliaSim. For example, if the version of CoppeliaSim is 4.4.0-rev0,

    git checkout -b master-v4.4.0-rev0
  • Checkout the submodules (coppeliarobotics/include/ and coppeliarobotics/remoteApi) to match the version of CoppeliaSim.

    cd coppeliarobotics/include/
    git checkout coppeliasim-v4.4.0-rev0
    cd ..
    cd remoteApi/
    git checkout coppeliasim-v4.4.0-rev0 
  • Implement the required modifications to ensure that cpp-interface-vrep compiles and passes the tests.

  • Update the debian folder {rules, control, changelog}. Check this example, and this PR.

    • Update the first line of debian/changelog with the package name:

      libdqrobotics-interface-vrep-4.4.0-0 (19.10.0) UNRELEASED; urgency=medium

    • Update the source, package, and conflicts in debian/control:

      Source: libdqrobotics-interface-vrep-4.4.0-0

      Package: libdqrobotics-interface-vrep-4.4.0-0
      Conflicts: libdqrobotics-interface-vrep

    • Update the COPPELIASIMTAG and PACKAGETAG in debian/rules:

      COPPELIASIMTAG = coppeliasim-v4.4.0-rev0
      # A more standardized naming of the version above
      PACKAGETAG = 4.4.0-0

      git clone --single-branch --branch $(COPPELIASIMTAG) https://git.launchpad.net/~dqrobotics-dev/dqrobotics/+git/coppelia-include coppeliarobotics/include
      git clone --single-branch --branch $(COPPELIASIMTAG) https://git.launchpad.net/~dqrobotics-dev/dqrobotics/+git/coppelia-remoteApi coppeliarobotics/remoteApi

      dpkg-gencontrol -plibdqrobotics-interface-vrep-$(PACKAGETAG)

  • Check that cpp-interface-vrep compiles and installs using the developer workflow. For instance:

    chmod +x debian/rules
    fakeroot debian/rules clean
    fakeroot debian/rules build
    fakeroot debian/rules binary
    cd ..
    sudo dpkg -i libdqrobotics-interface-vrep-4.4.0-0_19.10.0_amd64.deb
  • Open a PR.