Skip to main content

Tools for the HPP project

Project description

hpp-tools

This package contains some convenient command line tool for hpp. Current tools are:

  • hppcd
  • hpplog
  • hppmake
  • change_develconfig
  • recursivegit
  • wgit
  • gdbvim
  • hppautorestart
  • a gdb command to visualize configuration (See GDB Command)

Dependencies

For gdbvim command, you must install the vim plugin pyclewn.

Installation

First, the classic procedure:

$ mkdir build && cd build
$ cmake ..
$ make install

You need to source the file ${CMAKE_INSTALL_PREFIX}/etc/hpp-tools/bashrc. If you use the installation procedure described in HPP, you can simply add this line to ${DEVEL_HPP_DIR}/config.sh:

[ -f "${INSTALL_HPP_DIR}/etc/hpp-tools/bashrc" ] && source "${INSTALL_HPP_DIR}/etc/hpp-tools/bashrc"

# If you use ROS, you may want to add so that catkin works fine with hppcd
export ROS_LANG_DISABLE=genlisp:geneus:gennodejs

Optionally, you can use make target hppcd-defaults to install some link for HPP software:

$ make hppcd-defaults

Usage

  • addhppcd [<dir> [<alias>]] adds a folder to hppcd
  • hppcd <alias> goes the folder linked to 'alias'. It is compliant with cd -.
  • hpplog [binary-name] automatically tails the logs of the running hpp server. If no hpp server is running, it waits. The argument is the name of the binary file writting the logs. It defaults to hppcorbaserver.
  • hppmake --make-args "-s -j4" --debug hpp-core --release hpp-corbaserver will build, in order, hpp-core (resp. hpp-corbaserver) in debug mode (resp. in release mode).
  • filterhppoutput compresses hpp-util output. Use it like this: hpplog | filterhppoutput.
  • gdbvim [file-or-command]

hppautorestart

  • hppautorestart <command> This automatically restarts the command when it crashes or when you enter hpprestart in another terminal.
  • hpprestart This restarts all the command that have been launched using hppautorestart.

git helpers

First, here is a list of interesting git alias (Use git config --global alias.<aliasname> <alias-command>):

  • condensed pretty logs: log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all

  • expanded pretty logs: log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all

  • recursivegit [git-command] applies a git command on all subdirectories that are git repositories. To know the general state of your source repository: recursivegit status --short --branch. For fetching all repository: recursivegit fetch --all...

  • wgit simply combines command watch and git. Try it with one of the alias log command above !

GDB Command

The command forward-geometry enables you to display configuration directly in a viewer (gepetto-viewer or hpp-gui). The requirement for this command to work are the following:

  • compile gdb with python 2.7 support (and not python 3.4). You may skip this if you already have the good support. GDB 7.7.1 is by default compile with python 3.4
    • download the source: run cd /local/src && apt-get source gdb in a folder (I recommend /local/src/)
    • configure and install: cd /local/src/gdb-7.7.1, ./configure --prefix=/local --with-python=python2.7 and sudo make install
    • make sure the binary is available: which gdb should give you the path to the installed executable
  • add the following lines to ~/.gdbinit:
python
import os
gdb.execute ("directory " + os.environ["DEVEL_HPP_DIR"] + "/install/etc/gdb/")
end
source gdbinit

# If you do not use the DEVEL_HPP_DIR environment variable, then use this instead.
# source ${CMAKE_INSTALL_PREFIX}/install/etc/gdb/gdbinit
  • run help forward-geometry in the gdb cli.

### Log highlighter

Copy highlight/log.lang to ~/.highlight/langDefs/log.lang

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hpp_tools-9.0.2.tar.gz (31.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hpp_tools-9.0.2-0-py314-none-any.whl (48.2 kB view details)

Uploaded Python 3.14

hpp_tools-9.0.2-0-py313-none-any.whl (48.2 kB view details)

Uploaded Python 3.13

hpp_tools-9.0.2-0-py312-none-any.whl (48.2 kB view details)

Uploaded Python 3.12

hpp_tools-9.0.2-0-py311-none-any.whl (48.2 kB view details)

Uploaded Python 3.11

hpp_tools-9.0.2-0-py310-none-any.whl (48.2 kB view details)

Uploaded Python 3.10

File details

Details for the file hpp_tools-9.0.2.tar.gz.

File metadata

  • Download URL: hpp_tools-9.0.2.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for hpp_tools-9.0.2.tar.gz
Algorithm Hash digest
SHA256 c7c6bd0f0dcf9a14a26d56f5e8bed7dd0624d0d46e708608be235ce50df88f7d
MD5 7b20cfa01cb20cbf158be27401a15b95
BLAKE2b-256 8237351c65334f2048d38574f0112b104b350da96f31b7e3e004d88fe06c86c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpp_tools-9.0.2.tar.gz:

Publisher: release.yml on cmake-wheel/hpp-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hpp_tools-9.0.2-0-py314-none-any.whl.

File metadata

  • Download URL: hpp_tools-9.0.2-0-py314-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3.14
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for hpp_tools-9.0.2-0-py314-none-any.whl
Algorithm Hash digest
SHA256 a7fd4eba4784f6673b5bbcb03c50510eabc1da373d763e0389fd6368644722f0
MD5 202cc95be6451bed1fdcd039c3ddc8f7
BLAKE2b-256 71677c50072628b52d6a9b6b86a107cd3df6568a48a8c0af72352611d450596e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpp_tools-9.0.2-0-py314-none-any.whl:

Publisher: release.yml on cmake-wheel/hpp-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hpp_tools-9.0.2-0-py313-none-any.whl.

File metadata

  • Download URL: hpp_tools-9.0.2-0-py313-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3.13
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for hpp_tools-9.0.2-0-py313-none-any.whl
Algorithm Hash digest
SHA256 cb854fe8fe276cd5c908959f02c24fe075e33b5ba4e3e9cd4632fdb6bf0bddb4
MD5 86787b9262e35559d8ef1215d557287e
BLAKE2b-256 c8847464d07312e47881e37603237f51cc92a3a12eaec9d2df634d25bd15dcc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpp_tools-9.0.2-0-py313-none-any.whl:

Publisher: release.yml on cmake-wheel/hpp-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hpp_tools-9.0.2-0-py312-none-any.whl.

File metadata

  • Download URL: hpp_tools-9.0.2-0-py312-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3.12
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for hpp_tools-9.0.2-0-py312-none-any.whl
Algorithm Hash digest
SHA256 54f1951739de369162032d9ab0a3cceb8d4ccecab4a38e73d06dd033efcb1e9b
MD5 f39a26ef2f43f54b84fb5d838a3df31f
BLAKE2b-256 79e9beff6b0f38658f405b813f1e10b88329c3188da1bf8a5f3005deb84081dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpp_tools-9.0.2-0-py312-none-any.whl:

Publisher: release.yml on cmake-wheel/hpp-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hpp_tools-9.0.2-0-py311-none-any.whl.

File metadata

  • Download URL: hpp_tools-9.0.2-0-py311-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3.11
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for hpp_tools-9.0.2-0-py311-none-any.whl
Algorithm Hash digest
SHA256 4f5bc8b421fc9c7a7921c3006cf9447d3dfb0fdca753bfd680856feb7f8053b2
MD5 746889bcbdb1454b935ad5b9e7b61c22
BLAKE2b-256 7dc19e6ec16b0b3bdd26fe81ae6bef2e1c695687f35e7ee6693e4c5102a0e94e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpp_tools-9.0.2-0-py311-none-any.whl:

Publisher: release.yml on cmake-wheel/hpp-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hpp_tools-9.0.2-0-py310-none-any.whl.

File metadata

  • Download URL: hpp_tools-9.0.2-0-py310-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3.10
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for hpp_tools-9.0.2-0-py310-none-any.whl
Algorithm Hash digest
SHA256 5d24d22fa70a4fa7f3dad359d664efc0798a60452f9dd877a49f23943df116db
MD5 474c58c216722b0a528270f0032cf214
BLAKE2b-256 7659a56b291208e4c807cd2752a2bfc78260958250eadc9ea87c95b30718f97c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hpp_tools-9.0.2-0-py310-none-any.whl:

Publisher: release.yml on cmake-wheel/hpp-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page