From 46affbe3be1be17ca8778adeed68ba173677579a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:54:38 +0000 Subject: [PATCH 01/12] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.4.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.4...v0.4.8) - [github.com/pre-commit/mirrors-clang-format: v18.1.2 → v18.1.6](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.2...v18.1.6) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 64b0275..e2e9834 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_branch: devel repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.4 + rev: v0.4.8 hooks: - id: ruff args: @@ -19,13 +19,13 @@ repos: - id: toml-sort-fix exclude: poetry.lock - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.2 + rev: v18.1.6 hooks: - id: clang-format args: - --style=Google - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-ast From 07480f24e22e6f4edb707508e9df17d801d36132 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 22:23:26 +0000 Subject: [PATCH 02/12] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.8 → v0.5.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.8...v0.5.1) - [github.com/pre-commit/mirrors-clang-format: v18.1.6 → v18.1.8](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.6...v18.1.8) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e2e9834..310e95e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_branch: devel repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.8 + rev: v0.5.1 hooks: - id: ruff args: @@ -19,7 +19,7 @@ repos: - id: toml-sort-fix exclude: poetry.lock - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.6 + rev: v18.1.8 hooks: - id: clang-format args: From a8ee76bebafd6a988fd582d43e5d0211f4f00938 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 9 Jul 2024 11:59:30 +0200 Subject: [PATCH 03/12] ci: httpS --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e5bf4f..5a2bca8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1 +1 @@ -include: http://rainboard.laas.fr/project/gepetto-viewer-corba/.gitlab-ci.yml +include: https://rainboard.laas.fr/project/gepetto-viewer-corba/.gitlab-ci.yml From 82ec4b162ddea3956790cb5bf7015a80b752c900 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 29 Jul 2024 15:51:02 +0200 Subject: [PATCH 04/12] CMake: fix use of jrl-cmakemodules --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 398475c..548ab79 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -32,7 +32,7 @@ foreach(IDL ${IDL_SOURCES}) -Wbpackage=gepetto.corbaserver) if(PYTHON_VERSION_MAJOR EQUAL 3) set(_IDL_PYTHON_ARGUMENTS - -p${CMAKE_SOURCE_DIR}/cmake/hpp/idl -bomniidl_be_python_with_docstring + -p${JRL_CMAKE_MODULES}/hpp/idl -bomniidl_be_python_with_docstring ${_IDL_PYTHON_ARGUMENTS}) endif(PYTHON_VERSION_MAJOR EQUAL 3) generate_idl_python( From f225956f67b432c2f3f63b2acc816779804d7145 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 22:50:34 +0000 Subject: [PATCH 05/12] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.5.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.1...v0.5.5) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 310e95e..263f1be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_branch: devel repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.1 + rev: v0.5.5 hooks: - id: ruff args: From 5e188bb4282ba29577e0fc4f7cf5d953a0605ba7 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 7 Oct 2024 22:07:32 +0200 Subject: [PATCH 06/12] nix --- .github/workflows/nix.yml | 19 +++++++++++++++++++ flake.nix | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/workflows/nix.yml create mode 100644 flake.nix diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..52b45d9 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,19 @@ +name: "CI - Nix" + +on: + push: + +jobs: + nix: + runs-on: "${{ matrix.os }}-latest" + strategy: + matrix: + os: [ubuntu, macos] + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + - uses: cachix/cachix-action@v15 + with: + name: gepetto + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix build -L diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..694a01a --- /dev/null +++ b/flake.nix @@ -0,0 +1,39 @@ +{ + description = "An user-friendly Graphical Interface"; + + inputs = { + flake-parts.url = "github:hercules-ci/flake-parts"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = + inputs: + inputs.flake-parts.lib.mkFlake { inherit inputs; } { + systems = inputs.nixpkgs.lib.systems.flakeExposed; + perSystem = + { pkgs, self', ... }: + { + devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; }; + packages = { + default = self'.packages.gepetto-viewer-corba; + gepetto-viewer-corba = pkgs.python3Packages.gepetto-viewer-corba.overrideAttrs (_: { + src = pkgs.lib.fileset.toSource { + root = ./.; + fileset = pkgs.lib.fileset.unions [ + ./blender + ./CMakeLists.txt + ./doc + ./examples + ./idl + ./include + ./package.xml + ./plugins + ./src + ./tests + ]; + }; + }); + }; + }; + }; +} From f3b8b028c70480a95a4f44f14f85d8322e63e659 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 7 Oct 2024 22:08:44 +0200 Subject: [PATCH 07/12] nix: temporary patches override --- flake.lock | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 2 ++ 2 files changed, 60 insertions(+) create mode 100644 flake.lock diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..3fb6ced --- /dev/null +++ b/flake.lock @@ -0,0 +1,58 @@ +{ + "nodes": { + "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1727826117, + "narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1728018373, + "narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "bc947f541ae55e999ffdb4013441347d83b00feb", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1727825735, + "narHash": "sha256-0xHYkMkeLVQAMa7gvkddbPqpxph+hDzdu1XdGPJR+Os=", + "type": "tarball", + "url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz" + } + }, + "root": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 694a01a..c4191bb 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,8 @@ packages = { default = self'.packages.gepetto-viewer-corba; gepetto-viewer-corba = pkgs.python3Packages.gepetto-viewer-corba.overrideAttrs (_: { + # TODO: remove this after next release + postPatch = ""; src = pkgs.lib.fileset.toSource { root = ./.; fileset = pkgs.lib.fileset.unions [ From 5116d8093d661ad783c126018b6e6d210dfdca0e Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 7 Oct 2024 22:10:19 +0200 Subject: [PATCH 08/12] setup mergify --- .mergify.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..0e037ad --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,12 @@ +pull_request_rules: + - name: merge automatically when CI passes and PR is approved + conditions: + - check-success = "gitlab-ci" + - check-success = "nix (macos)" + - check-success = "nix (ubuntu)" + - check-success = "pre-commit.ci - pr" + - or: + - author = pre-commit-ci[bot] + - author = dependabot[bot] + actions: + merge: From b6350128db01ab161d15b2db5811d33020d5b671 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 7 Oct 2024 22:15:32 +0200 Subject: [PATCH 09/12] pre-commit autoupdate --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 263f1be..ae52b97 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_branch: devel repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.5 + rev: v0.6.9 hooks: - id: ruff args: @@ -19,13 +19,13 @@ repos: - id: toml-sort-fix exclude: poetry.lock - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.8 + rev: v19.1.1 hooks: - id: clang-format args: - --style=Google - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast From 8c524dcbd84ba353f802127abe0015e9f9d3ca34 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 7 Oct 2024 22:17:03 +0200 Subject: [PATCH 10/12] pre-commit run -a --- examples/notebooks/a-basics.ipynb | 219 ++++++++---------- .../b-display-force-or-velocities.ipynb | 176 ++++++-------- examples/pyplugin/pythonwidget.py | 3 +- 3 files changed, 175 insertions(+), 223 deletions(-) diff --git a/examples/notebooks/a-basics.ipynb b/examples/notebooks/a-basics.ipynb index ee4585f..8f91be6 100644 --- a/examples/notebooks/a-basics.ipynb +++ b/examples/notebooks/a-basics.ipynb @@ -1,133 +1,106 @@ { - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Launch the gui and create a window." - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [], - "source": [ - "from gepetto.corbaserver import gui_client, start_server, Color\n", - "\n", - "start_server(args=[])\n", - "gui = gui_client(window_name=\"tuto\")" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Add some visual entities\n", - "\n", - "They are called nodes and are organised as a tree.\n", - "\n", - "When you create a window, a group node (called *group* from now on) is created with the same name. Adding nodes to this group displays them in the window." - ] - }, - { - "cell_type": "code", - "execution_count": 20, - "metadata": {}, - "outputs": [ + "cells" : [ { - "data": { - "text/plain": [ - "True" + "cell_type" : "markdown", + "metadata" : {}, + "source" : ["# Launch the gui and create a window."] + }, + { + "cell_type" : "code", + "execution_count" : 6, + "metadata" : {}, + "outputs" : [], + "source" : [ + "from gepetto.corbaserver import Color, gui_client, start_server\n", + "\n", "start_server(args=[])\n", + "gui = gui_client(window_name=\"tuto\")" ] - }, - "execution_count": 20, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "gui.addBox(\"box\", 0.1, 0.1, 0.1, Color.green)\n", - "gui.addToGroup(\"box\", \"tuto\")\n", - "gui.setCameraToBestFit(\"tuto\")" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Add another node, directly in group *tuto*." - ] - }, - { - "cell_type": "code", - "execution_count": 15, - "metadata": {}, - "outputs": [ + }, { - "data": { - "text/plain": [ - "True" + "cell_type" : "markdown", + "metadata" : {}, + "source" : [ + "# Add some visual entities\n", "\n", + "They are called nodes and are organised as a tree.\n", "\n", + "When you create a window, a group node (called *group* from now on) ", + "is created with the same name. Adding nodes to this group displays ", + "them in the window." ] - }, - "execution_count": 15, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "gui.addCylinder(\"tuto/cyl\", 0.01, 0.1, Color.red)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "To move one node, you must use `applyConfiguration` and then `refresh`. All calls to `applyConfiguration` are applied at the next `refresh`." - ] - }, - { - "cell_type": "code", - "execution_count": 19, - "metadata": {}, - "outputs": [ + }, + { + "cell_type" : "code", + "execution_count" : 20, + "metadata" : {}, + "outputs" : [ { + "data" : {"text/plain" : ["True"]}, + "execution_count" : 20, + "metadata" : {}, + "output_type" : "execute_result" + } ], + "source" : [ + "gui.addBox(\"box\", 0.1, 0.1, 0.1, Color.green)\n", + "gui.addToGroup(\"box\", \"tuto\")\n", + "gui.setCameraToBestFit(\"tuto\")" + ] + }, + { + "cell_type" : "markdown", + "metadata" : {}, + "source" : ["Add another node, directly in group *tuto*."] + }, { - "data": { - "text/plain": [ - "True" + "cell_type" : "code", + "execution_count" : 15, + "metadata" : {}, + "outputs" : [ { + "data" : {"text/plain" : ["True"]}, + "execution_count" : 15, + "metadata" : {}, + "output_type" : "execute_result" + } ], + "source" : ["gui.addCylinder(\"tuto/cyl\", 0.01, 0.1, Color.red)"] + }, + { + "cell_type" : "markdown", + "metadata" : {}, + "source" : [ + "To move one node, you must use `applyConfiguration` and ", + "then `refresh`. All calls to `applyConfiguration` are ", + "applied at the next `refresh`." + ] + }, + { + "cell_type" : "code", + "execution_count" : 19, + "metadata" : {}, + "outputs" : [ { + "data" : {"text/plain" : ["True"]}, + "execution_count" : 19, + "metadata" : {}, + "output_type" : "execute_result" + } ], + "source" : [ + "gui.applyConfiguration(\"tuto/cyl\", [0, 0, 0.1, 0, 0, 0, 1])\n", + "gui.refresh()\n", "gui.setCameraToBestFit(\"tuto\")" ] - }, - "execution_count": 19, - "metadata": {}, - "output_type": "execute_result" } - ], - "source": [ - "gui.applyConfiguration(\"tuto/cyl\", [0, 0, 0.1, 0, 0, 0, 1])\n", - "gui.refresh()\n", - "gui.setCameraToBestFit(\"tuto\")" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" + ], + "metadata" : { + "kernelspec" : { + "display_name" : "Python 3", + "language" : "python", + "name" : "python3" + }, + "language_info" : { + "codemirror_mode" : {"name" : "ipython", "version" : 3}, + "file_extension" : ".py", + "mimetype" : "text/x-python", + "name" : "python", + "nbconvert_exporter" : "python", + "pygments_lexer" : "ipython3", + "version" : "3.6.9" + } }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.6.9" - } - }, - "nbformat": 4, - "nbformat_minor": 2 + "nbformat" : 4, + "nbformat_minor" : 2 } diff --git a/examples/notebooks/b-display-force-or-velocities.ipynb b/examples/notebooks/b-display-force-or-velocities.ipynb index 5186e41..f9d9b1e 100644 --- a/examples/notebooks/b-display-force-or-velocities.ipynb +++ b/examples/notebooks/b-display-force-or-velocities.ipynb @@ -1,102 +1,80 @@ { - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [], - "source": [ - "from gepetto.corbaserver import gui_client, start_server, Color\n", - "\n", - "start_server(args=[])\n", - "gui = gui_client(window_name=\"tuto\")\n", - "\n", - "gui.createGroup(\"frame\")\n", - "gui.addToGroup(\"frame\", \"tuto\")\n", - "gui.addLandmark(\"frame\", 0.01)\n", - "gui.applyConfiguration(\"frame\", [0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 1.0])\n", - "gui.refresh()" - ] + "cells" : [ + { + "cell_type" : "code", + "execution_count" : 1, + "metadata" : {}, + "outputs" : [], + "source" : [ + "from gepetto.corbaserver import Color, gui_client, start_server\n", + "\n", "start_server(args=[])\n", + "gui = gui_client(window_name=\"tuto\")\n", "\n", + "gui.createGroup(\"frame\")\n", "gui.addToGroup(\"frame\", \"tuto\")\n", + "gui.addLandmark(\"frame\", 0.01)\n", + "gui.applyConfiguration(\"frame\", [0.0, 0.5, 0.0, 0.0, 0.0, 0.0, ", + "1.0])\n", "gui.refresh()" + ] + }, + { + "cell_type" : "markdown", + "metadata" : {}, + "source" : [ + "# Display a 3D vector as a linear or rotational arrow\n", "\n", + "The green and blue shape will represent the same vector." + ] + }, + { + "cell_type" : "code", + "execution_count" : 2, + "metadata" : {}, + "outputs" : [], + "source" : [ + "from gepetto.corbaserver import tools\n", "\n", + "lin = tools.Linear(\"frame/lin_arrow\", color=Color.green)\n", + "lin.create(gui)\n", "\n", + "ang = tools.Angular(\"frame/ang_arrow\", color=Color.blue)\n", + "ang.create(gui)\n", "\n", "vel_in_local_frame = [\n", " 0.2,\n", + " 0.3,\n", " 0.5,\n", "]\n", "lin.set(gui, vel_in_local_frame)\n", + "ang.set(gui, vel_in_local_frame)\n", "\n", + "# This call is required.\n", "gui.refresh()" + ] + }, + { + "cell_type" : "markdown", + "metadata" : {}, + "source" : ["# Display a 6D vector"] + }, + { + "cell_type" : "code", + "execution_count" : 3, + "metadata" : {}, + "outputs" : [], + "source" : [ + "from gepetto.corbaserver import tools\n", "\n", + "# angFactor is the maximum norm of the angular vector.\n", + "vector6 = tools.Vector6(\"frame\", angFactor=3.14)\n", + "vector6.create(gui)\n", "\n", + "vel_in_local_frame = [0.1, 0.0, 0.2, 0.3, 0.5, 0.0]\n", + "vector6.set(gui, vel_in_local_frame)\n", "gui.refresh()" + ] + } + ], + "metadata" : { + "kernelspec" : { + "display_name" : "Python 3", + "language" : "python", + "name" : "python3" + }, + "language_info" : { + "codemirror_mode" : {"name" : "ipython", "version" : 3}, + "file_extension" : ".py", + "mimetype" : "text/x-python", + "name" : "python", + "nbconvert_exporter" : "python", + "pygments_lexer" : "ipython3", + "version" : "3.6.9" + } }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Display a 3D vector as a linear or rotational arrow\n", - "\n", - "The green and blue shape will represent the same vector." - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [], - "source": [ - "from gepetto.corbaserver import tools\n", - "\n", - "lin = tools.Linear(\"frame/lin_arrow\", color=Color.green)\n", - "lin.create(gui)\n", - "\n", - "ang = tools.Angular(\"frame/ang_arrow\", color=Color.blue)\n", - "ang.create(gui)\n", - "\n", - "vel_in_local_frame = [\n", - " 0.2,\n", - " 0.3,\n", - " 0.5,\n", - "]\n", - "lin.set(gui, vel_in_local_frame)\n", - "ang.set(gui, vel_in_local_frame)\n", - "\n", - "# This call is required.\n", - "gui.refresh()" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Display a 6D vector" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [], - "source": [ - "from gepetto.corbaserver import tools\n", - "\n", - "# angFactor is the maximum norm of the angular vector.\n", - "vector6 = tools.Vector6(\"frame\", angFactor=3.14)\n", - "vector6.create(gui)\n", - "\n", - "vel_in_local_frame = [0.1, 0.0, 0.2, 0.3, 0.5, 0.0]\n", - "vector6.set(gui, vel_in_local_frame)\n", - "gui.refresh()" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.6.9" - } - }, - "nbformat": 4, - "nbformat_minor": 2 + "nbformat" : 4, + "nbformat_minor" : 2 } diff --git a/examples/pyplugin/pythonwidget.py b/examples/pyplugin/pythonwidget.py index c31fd5c..ec88c05 100644 --- a/examples/pyplugin/pythonwidget.py +++ b/examples/pyplugin/pythonwidget.py @@ -1,6 +1,7 @@ -from gepetto.corbaserver import Client from PythonQt import Qt, QtGui +from gepetto.corbaserver import Client + class _NodeCreator(QtGui.QWidget): """This class represents one special tab of the new QDockWidget.""" From 284e28170cb501ab3f8f5d33be98305ec1348b22 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 8 Oct 2024 13:44:39 +0200 Subject: [PATCH 11/12] sync submodule --- cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake b/cmake index 657b07c..4b829af 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 657b07cb721ecbc383d4e76438eb6ec5c421a332 +Subproject commit 4b829af01672f0a7d26b1ae8b69c828905e1e3dc From 4292586a28951cd746d513ff9fcd836e9613a0c8 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 8 Oct 2024 22:04:55 +0200 Subject: [PATCH 12/12] release: Update package.xml version to 5.8.1 --- package.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.xml b/package.xml index b52c0da..880977c 100644 --- a/package.xml +++ b/package.xml @@ -1,7 +1,7 @@ gepetto-viewer-corba - 5.8.0 + 5.8.1 Corba server for gepetto-viewer Joseph Mirabel