Compare commits

..
7 Commits
Author SHA1 Message Date
dsh bf149c02cd README: arrumar o texto dos submodulos e registar que o "git submodule update --init" sem alvo ja nao aborta - foi verificado num clone limpo do Gitea e do espelho do GitHub, agora que src/waypoints e conteudo e nao um gitlink sem mapeamento 2026-10-08 16:59:15 +01:00
dsh 0148385266 waypoints: reconstruir o pacote perdido como RECONSTRUCAO DECLARADA
O gitlink src/waypoints (sha 115553cfa8c2ace122414ac5a9b235cd2e225693) apontava
para codigo que nao existe em nenhum remoto conhecido (Gitea, GitHub, maquina,
web) e que o autor ja nao tem. O resultado era concreto: `rosrun waypoints
waypoints_server`, que guide.txt manda correr, nao resolvia num clone limpo, e a
unica saida honesta era reconstruir ou documentar a falta. O autor autorizou a
reconstrucao ("ja nao tenho waypoints, se conseguires criar um, agradecia"),
por isso o gitlink e substituido por conteudo dentro do repositorio
(`git rm --cached src/waypoints` + ficheiros commitados), escrito a partir das
pistas que sobreviveram:

  * guide.txt: nome do pacote (`waypoints`) e do executavel
    (`waypoints_server`), sem argumentos - o unico contrato documentado;
  * p3dx_navigation.rviz: as classes `waypoints/waypointPanel` (painel) e
    `waypoints/Waypoints` (ferramenta, `Topic: waypoint`) provam que o original
    tambem trazia plugins rviz em C++ e que o topico `waypoint` era usado.

O que fica e uma RECONSTRUCAO DECLARADA, nao o trabalho original: Python (o
autor pediu legibilidade, e um no C++ com interface adivinhada nao poderia ser
compilado nem testado aqui), um servidor de waypoints conservador
(`geometry_msgs/PoseStamped` em `waypoint` -> `geometry_msgs/PoseArray`
latched em `waypoints`), e um README dentro do pacote que diz o que e certo
(o nome do no), o que e inferido (topicos, tipos, parametros), que os plugins
rviz do original NAO foram reproduzidos e que quem reutilizar isto deve
confirmar o interface antes de confiar nele.

Os documentos passam a dizer isto: README.md (seccao do waypoints e linha da
tabela de licencas: GPLv3, como o resto do repo), tests/known-gaps.txt (a
lacuna deixa de ser o codigo e passa a ser o ORIGINAL, e o `darknet_ros` do
guide.txt continua por resolver) e tests/run.sh + tests/negative.sh (8
verificacoes novas, incluindo as negativas em copias mktemp: apagar o no,
tirar o package.xml, tirar o +x, renomear o no, estragar o Python, tirar a
declaracao e voltar a fazer gitlink). O .gitmodules nao muda: so `rosaria`
continua a ser submodulo, e como `waypoints` era o ultimo gitlink sem
mapeamento, `git submodule status` deixa de se queixar e o clone limpo deixa de
trazer um diretorio vazio.

O que isto NAO prova, e fica dito: nao houve ROS neste ambiente, portanto nao
houve catkin_make nem rosrun. So a estrutura, o nome do no e a sintaxe
(python3 -m py_compile) foram verificados.
2026-10-08 16:58:17 +01:00
Andre Neto 0305718a67 README: a tabela de licencas passa a dizer o que se sabe do rosaria (GPL-2.0-only, sem 'or later', incompativel com a GPL-3.0 deste repo num trabalho combinado) em vez de 'no licence file to read'; registado, nao resolvido 2026-10-08 16:25:29 +01:00
dsh 95389f69d3 Add .gitmodules for src/rosaria, and tests that a clean clone brings code
src/rosaria and src/waypoints are gitlinks (index mode 160000) with no
.gitmodules entry, so a fresh clone created EMPTY directories. Because
src/robot/package.xml declares <depend>rosaria</depend>, a clean clone could not
be built, and the `rosrun waypoints waypoints_server` step in guide.txt could not
resolve.

- .gitmodules: declare src/rosaria -> github.com/amor-ros-pkg/rosaria.git.
  Verified rather than guessed: commit 204dc0c6785abb4037c1c5ee76439cf5f50cb880
  exists on that repository's master branch.
- src/waypoints: its origin could NOT be identified (not in the Gitea instance,
  not in the author's GitHub account, not on the machine, not on the web), so no
  entry was invented for it. It is documented in the README as a known gap and
  listed in tests/known-gaps.txt.
- tests/run.sh: offline integrity checks - packages complete, package names
  present and unique, catkin toplevel symlink, every gitlink declared or a
  documented gap, src/rosaria resolves at the pinned commit, every in-tree
  <depend> points at a package that exists. Exits non-zero on failure.
- tests/negative.sh: proves that suite has teeth by breaking one thing at a time
  in a throwaway copy, with a positive control first.
- README: where each gitlink comes from, what a clean clone still lacks, the
  darknet_ros reference in guide.txt that matches no package, and the stale
  rosaria licence row (left for the author to decide).

Known limitation, documented in the README: the untargeted
`git submodule update --init` still aborts, because the unmapped src/waypoints
gitlink has no URL to resolve. Initialise by path instead:
`git submodule update --init -- src/rosaria`. That works today and will keep
working once src/waypoints is sorted out.

No package code, CMakeLists or third-party licences were changed; the repository
stays GPL-3.0. Not proven: that the workspace builds - there is no ROS in this
environment, so catkin_make was never run.
2026-10-08 16:23:57 +01:00
Andre Neto cbfa20cfce ros_astra_camera: documenta a limitacao conhecida — o CMakeLists ainda aponta para os binarios que sairam; ligar contra o OpenNI2 de sistema funciona, o make install procura ficheiros que ja nao existem (nao se corrige aqui: nao ha ROS neste ambiente para testar) 2026-10-08 15:25:59 +01:00
Andre Neto 246770a1bf Drop the vendored OpenNI2/Orbbec binaries from ros_astra_camera
The prebuilt OpenNI2 runtime and Orbbec driver under
include/openni2_redist/ are manufacturer/third-party artefacts and nobody
ever checked whether their terms allow redistribution. Against a public
repository that is a legal unknown with no counterweight, so the binaries
leave the tree: whoever needs them installs OpenNI2 from its own official
distribution and the Orbbec driver from the manufacturer SDK (or the
distribution package that provides it).

The README now says this, and .gitignore keeps the directory from coming
back. Nothing else changes: no source, no package.xml, no CMakeLists.txt.
2026-10-08 15:25:09 +01:00
Andre Neto fb6a4a93ec License the repo as GPL-3.0 and list the licence of each vendored package
MIT seria uma contradicao aqui: o repo inclui p3dx_description (GPLv3) e
robot/estop (LGPLv3), alem de ros_astra_camera (Apache-2.0) e pacotes BSD. O
repo no seu conjunto fica GPL-3.0 e cada pacote de terceiros mantem a licenca
dele, agora listada no README. Ano = primeiro commit (2024).
2026-10-08 14:54:22 +01:00
59 changed files with 1779 additions and 1022 deletions
+2 -1
View File
@@ -2,4 +2,5 @@
/.catkin_workspace /.catkin_workspace
/.vscode /.vscode
/build /build
/devel /devel
src/ros_astra_camera/include/openni2_redist/
+13
View File
@@ -0,0 +1,13 @@
# Submodules of this catkin workspace.
#
# src/rosaria is pinned to the upstream commit recorded in this repository's
# history; tests/run.sh verifies that it resolves and that the checkout matches
# the pin.
#
# src/waypoints is ALSO a gitlink (index mode 160000) in this repository's
# history, but its origin could not be identified, so it deliberately has NO
# entry here: inventing a URL would be worse than the honest gap. See README.md,
# "The waypoints package is missing" and tests/known-gaps.txt.
[submodule "src/rosaria"]
path = src/rosaria
url = https://github.com/amor-ros-pkg/rosaria.git
+674
View File
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+162
View File
@@ -0,0 +1,162 @@
# p3dx-catkin
ROS catkin workspace for the Pioneer 3-DX (P3DX) mobile robot.
## License
The repository **as a whole** is licensed under **GPL-3.0** — see [LICENSE](LICENSE)
(Copyright (C) 2024 André Neto, the year of the first commit). Third-party packages
vendored under `src/` keep their own licences:
| package | licence declared in `package.xml` |
|---|---|
| `p3dx_description` | GPL-3.0 |
| `robot`, `estop` | LGPL-3.0 |
| `ros_astra_camera` | Apache-2.0 |
| `urg_node`, `urg_c`, `laser_proc`, `rgbd_launch` | BSD |
| `object_detection`, `p3dx_navigation`, `p3dx_slam` | not declared (`TODO` in `package.xml`) |
| `rosaria` | **GPL-2.0-only** (declared in the upstream `package.xml`; the upstream repository has no licence file) |
| `waypoints` | GPL-3.0 (`GPLv3` in `package.xml`) — a **declared reconstruction**, not the original; see [`src/waypoints/README.md`](src/waypoints/README.md) |
MIT is not possible here: the GPL-3.0 package `p3dx_description` and the LGPL-3.0
`robot`/`estop` impose their own obligations on the combined work.
## OpenNI2 and the Orbbec driver are not bundled
`ros_astra_camera` needs the OpenNI2 runtime and the Orbbec driver
(`OpenNI2/Drivers/liborbbec.so` and friends). Those used to be vendored here as
prebuilt binaries under `src/ros_astra_camera/include/openni2_redist/`; they are
no longer part of this repository. They are factory/third-party artefacts and
this repository has no checked terms to redistribute them, so it does not.
Install them instead: the OpenNI2 runtime from the official OpenNI distribution
(build it from the official source tree, or use the distribution package that
provides OpenNI2 for your architecture), and the Orbbec driver from the
manufacturer's Astra SDK, or from the distribution package that ships it.
Once OpenNI2 is available system-wide the package builds as before, because the
OpenNI2 headers remain in the repository under
`src/ros_astra_camera/include/openni2/`. Anyone who prefers to keep the files
next to the source can drop them back into
`src/ros_astra_camera/include/openni2_redist/<arch>/`; that directory is now
ignored by git so it will not be committed again.
## Submodules: a clean clone must bring code, not empty directories
`src/rosaria` and `src/waypoints` were both recorded in this repository's history as
**gitlinks** (index mode `160000`, i.e. submodule entries), not as plain
directories. A gitlink stores only a commit id — the code itself lives in another
repository. For a clone to bring that code, each gitlink needs a matching entry in
`.gitmodules`; without one, `git clone` simply creates an **empty directory**.
Only `src/rosaria` is still a gitlink today; `src/waypoints` was replaced by in-tree
content written as a **declared reconstruction** of the lost original — see below.
That gitlink state broke the build: `src/robot/package.xml` declares
`<depend>rosaria</depend>`, so while `src/rosaria` was empty a clean clone could not be
built.
### `src/rosaria` — origin identified, fixed here
`src/rosaria` points at commit `204dc0c6785abb4037c1c5ee76439cf5f50cb880` of
**<https://github.com/amor-ros-pkg/rosaria.git>**. This was verified rather than
guessed: the commit exists on that repository's `master` branch (it is the merge
commit of pull request #56) and its tree contains `package.xml`, `CMakeLists.txt`
and `RosAria.cpp`.
A `.gitmodules` entry now declares it, so a clean clone brings the code:
```sh
git clone <url> p3dx-catkin
cd p3dx-catkin
git submodule update --init -- src/rosaria
```
**Note the `-- src/rosaria`.** While `src/waypoints` was still a gitlink with no
`.gitmodules` mapping, the untargeted `git submodule update --init` aborted — git could
not resolve a URL for it — and the same happened to a bare `git submodule status`. That
is fixed: initialising by path still works, and the untargeted `git submodule update
--init` and `git submodule status` were both verified to succeed on a clean clone, now
that every remaining gitlink is declared.
### `src/waypoints` — the original is LOST; what is there now is a declared reconstruction
`src/waypoints` used to point at commit `115553cfa8c2ace122414ac5a9b235cd2e225693`, but
**that code does not exist in any remote that could be found** — this was checked,
not assumed. It is not:
- in the Gitea instance (`aneto/*`) — no repository matches `waypoints`;
- in the author's GitHub account (`ags-neto`) — 15 public repositories, none named
`waypoints`, and `ags-neto/waypoints` returns 404;
- anywhere on the machine where these checks were run — there is no
`waypoints_server` source on it;
- on the web — the commit `115553c…` is not reachable from any candidate repository.
Because the origin is unknown, **no `.gitmodules` entry was invented for it**: a
guessed URL would be worse than an honest gap. The author was asked, no longer has the
code, and authorised a reconstruction, so the gitlink was replaced by in-tree content
(`git rm --cached src/waypoints` plus the committed files) — the second of the two
honest ways out. That content is **a reconstruction, not the original work**:
> **[`src/waypoints/README.md`](src/waypoints/README.md)** is the declaration. It names
> the lost commit, says what is documented (`guide.txt` runs
> `rosrun waypoints waypoints_server`, so the package name and the node name are
> certain) and what is inferred (every topic, message type and parameter), says why it
> is Python, and tells anyone who reuses it to confirm the interface before trusting it.
What is genuinely missing now is the **original** `waypoints` package — and with it the
rviz plugins that `p3dx_navigation.rviz` expects (`waypoints/waypointPanel`,
`waypoints/Waypoints`), which the reconstruction deliberately does not reproduce. The
consequence is concrete: a clean clone now brings a real `src/waypoints/` directory
instead of an empty one, so `rosrun waypoints waypoints_server` resolves structurally —
but the interface is a guess, and `p3dx_navigation.rviz` still reports the waypoint
panel and tool as unknown classes. If the original ever reappears, it should replace the
reconstruction. Both gaps are recorded in [`tests/known-gaps.txt`](tests/known-gaps.txt).
## `guide.txt` also runs a package that is not in this workspace
The object-detection section of `guide.txt` says to run
`roslaunch darknet_ros darknet_ros.launch`, but there is **no `darknet_ros` package
under `src/`**. This is a documentation-conformance gap, not a gitlink — the package
presumably came from another workspace or from a system install. It is recorded here
and not fixed: `guide.txt` is the author's.
## One observation left for the author (licences)
The licence table above was written when `rosaria` was still an empty gitlink, so its
row reads "gitlinks with no content, no licence file to read". Now that `src/rosaria`
resolves, that row is stale: at the pinned commit, `rosaria/package.xml` declares
`<license>GPLv2</license>` (version 0.9.0). That matters for the repository-wide
GPL-3.0 decision, because GPLv2 without "or later" is not compatible with GPL-3.0.
The row was deliberately **left untouched** — the licence decision is the author's,
not this fix's.
## Tests
`tests/run.sh` checks what can be checked without ROS: that every package recorded in
the index has `package.xml` and `CMakeLists.txt`, that package names are present and
unique, that `src/CMakeLists.txt` is catkin's toplevel symlink, that every gitlink is
either declared in `.gitmodules` or a documented known gap, that `src/rosaria`
resolves at the pinned commit, that the declared submodule URL is the verified one,
that every in-tree `<depend>` points at a package that exists, that every known gap is
documented here, and (section 8) that the reconstructed `waypoints` package is
complete: no gitlink any more, a `package.xml` declaring `waypoints`, a `CMakeLists.txt`,
the node that `guide.txt` names present, executable and initialising itself under that
same name, its Python accepted by `python3 -m py_compile`, a README that declares it a
reconstruction and names the lost commit, and a `git submodule status` that no longer
fails. `tests/negative.sh` proves the suite has teeth by breaking one thing at a time in
a throwaway copy — including deleting the reconstructed node, taking its `package.xml`
away, making the node non-executable, renaming the node it initialises, corrupting its
Python, dropping the declaration, and committing the gitlink back.
They do **not** prove that the workspace builds — no ROS was available where they were
written, so `catkin_make` was never run — nor that the reconstructed `waypoints` node
does anything useful when it runs: only its structure, its node name and its syntax are
checked, and its topics are inferred (see [`src/waypoints/README.md`](src/waypoints/README.md)).
**On `rosaria`:** its upstream (`amor-ros-pkg/rosaria`) declares `GPLv2` with no "or later"
clause, which is **incompatible with the GPL-3.0 of this repository** for a combined work. It is
kept as a separate package (a collection, not a derivative), so each package keeps its own
licence — but if a single licence for the whole set is ever wanted, `rosaria` would have to be
replaced by a GPLv3-compatible alternative. This is recorded, not resolved: the licence table was
left otherwise untouched.
+9
View File
@@ -139,3 +139,12 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*Other names and brands may be claimed as the property of others* *Other names and brands may be claimed as the property of others*
### Known limitation after removing the bundled binaries
The package's `CMakeLists.txt` still references `include/openni2_redist/<arch>` in a few places
(the `install` rules among them). Linking against a **system** OpenNI2 works, but `make install`
for this package will look for files that are no longer in the repository. Whoever needs that
install step should either point those rules at the system OpenNI2 or drop them. This was not
changed here on purpose: there is no ROS toolchain in this environment, so the change could not
be tested.
@@ -1,17 +0,0 @@
[Log]
; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
Verbosity=0
LogToConsole=1
;LogToFile=1
;LogToAndroidLog=1
[Device]
;Override=
;RecordTo=
[Drivers]
; Location of the drivers, relative to OpenNI shared library location. When not provided, "OpenNI2/Drivers" will be used.
;Repository=OpenNI2/Drivers
; List of drivers to load, separated by commas. When not provided, OpenNI will try to load each shared library in Repository.
;List=
@@ -1,7 +0,0 @@
;---------------- Player Configuration -------------------
[Player]
; Speed. 1.0 - 1.0 * fps (default), Values can be R while R is real and grater the 0
;Speed=1.0
; Repeat. 1 - on (default), 0 - off
;Repeat=1
@@ -1,48 +0,0 @@
;---------------- PSLink Driver Default Configuration -------------------
[Device]
; USB interface to be used. 0 - FW Default, 1 - ISO endpoints (default on Windows), 2 - BULK endpoints (default on Linux/Mac/Android machines)
;UsbInterface=2
; Enable firmware logs. 0 - Off (default), 1 - On
;FirmwareLog=1
[Depth]
; Allows dumping all frames to files. 0 - Off (default), 1 - On
;DumpData=1
; Allow flipping the frame horizontally. 0 - Off, 1 - On (default)
;Mirror=0
; Compression of the data passed from device to host. 0 - None, 2 - 16z, 6 - 11-bit packed, 7 - 12-bit packed. Default is set by the firmware
;Compression=2
[Depth.VideoMode]
; Pixel Format. 100 - Depth 1 mm, 101 - Depth 100 um, 102 - Shifts 9.2, 103 - Shifts 9.3
;PixelFormat=100
; Requested X resolution
;XResolution=320
; Requested Y resolution
;YResolution=240
; Requested FPS
;FPS=30
[IR]
; Allows dumping all frames to files. 0 - Off (default), 1 - On
;DumpData=1
; Allow flipping the frame horizontally. 0 - Off, 1 - On (default)
;Mirror=0
; Compression of the data passed from device to host. 0 - None, 5 - 10-bit packed. Default is set by the firmware
;Compression=5
[IR.VideoMode]
; Pixel Format. 200 - RGB888, 202 - Grayscale 8-bit, 203 - Grayscale 16-bit
;PixelFormat=200
; Requested X resolution
;XResolution=320
; Requested Y resolution
;YResolution=240
; Requested FPS
;FPS=30
@@ -1,183 +0,0 @@
;---------------- Sensor Default Configuration -------------------
[Device]
; Mirroring. 0 - Off (default), 1 - On
;Mirror=1
; FrameSync. 0 - Off (default), 1 - On
;FrameSync=1
; Stream Data Timestamps. 0 - milliseconds, 1 - microseconds (default)
;HighResTimestamps=1
; Stream Data Timestamps Source. 0 - Firmware (default), 1 - Host
;HostTimestamps=0
; A filter for the firmware log. Default is determined by firmware.
;FirmwareLogFilter=0
; Automatic firmare log retrieval. 0 - Off (default), or the number of milliseconds between log retrievals operations.
;FirmwareLogInterval=1000
; Print firmware log to console when automatic firmware log retrieval is on. 0 - Off (default), 1 - On
;FirmwareLogPrint=1
; Is APC enabled. 0 - Off, 1 - On (default)
;APCEnabled=1
; USB interface to be used. 0 - FW Default, 1 - ISO endpoints (default on Windows), 2 - BULK endpoints (default on Linux/Mac/Android machines), 3 - ISO endpoints for low-bandwidth depth
UsbInterface=2
[Depth]
; Output format. 100 - 1mm depth values (default), 102 - u9.2 Shift values.
;OutputFormat=100
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA, 1 - VGA, 4 - QQVGA. Default: Arm - 4, other platforms - 0, -14 1280x720, 15 1280x960,-16 1280x800, -17 640x400 -20 320x200,-21 480x640, -25 960x1280, -26 800x1280,-27 400x640
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Min depth cutoff. 0-10000 mm (default is 0)
;MinDepthValue=0
; Max depth cutoff. 0-10000 mm (default is 10000)
;MaxDepthValue=10000
; Input format. 0 - Uncompressed 16-bit, 1 - PS Compression,2 - Packed 10-bit, 3 - Packed 11-bit, 4 - Packed 12-bit. Default: Arm - 4, other platforms - 3
InputFormat=3
; Registration. 0 - Off (default), 1 - On
;Registration=1
; Registration Type. 0 - Don't care (default), 1 - use hardware accelaration, 2 - perform in software
;RegistrationType=0
; software filter 0-off ,1--on (default)
;SoftFilter=0
; Depth Rotate 0-off(default) ,1--on (only atlas device support)
;DepthRotate=0
;Read Params (for test only)
;ReadParams=0
; dual sensor: 5.96 mm
;focallength=5.96
;dual sensor: 0.0052mm
;dPlanePixelSize=0.113967
;dPlaneDistance=130
;dual sensor: 75mm
;dEmitterDcmosDistance=7.500000
;dhorizontalFov=0.022600
;dverticalFov=0.796616
; Hole Filler. 0 - Off, 1 - On (default)
;HoleFilter=0
; White Balance. 0 - Off, 1 - On (default)
;WhiteBalancedEnabled=0
; Gain. 0-50 (0 - Auto, 1 - Min., 50 - Max.). Default value is set by firmware.
;Gain=0
; Close Range Mode. 0 - Off (default), 1 - On
;CloseRange=1
; GMC Mode. 0 - Off, 1 - On (default)
;GMCMode=0
; GMC Debug. 0 - Off (default), 1 - On
;GMCDebug=1
; Depth Auto Gain Region-of-Interest. Default values are set by firmware.
;DepthAGCBin0MinDepth=500
;DepthAGCBin0MaxDepth=800
;DepthAGCBin1MinDepth=1500
;DepthAGCBin1MaxDepth=1800
;DepthAGCBin2MinDepth=2500
;DepthAGCBin2MaxDepth=2800
;DepthAGCBin3MinDepth=3500
;DepthAGCBin3MaxDepth=3800
; Wavelength Correction Mechanism. 0 - Off (default), 1 - On
;WavelengthCorrection=1
; Wavelength Correction debug info. 0 - Off (default), 1 - On
;WavelengthCorrectionDebug=1
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=2
; Cropping area
[Depth.Cropping]
OffsetX=0
OffsetY=0
SizeX=320
SizeY=240
;Enabled=1
[Image]
; Output format. 200 - RGB888 (default), 201 - YUV422, 202 - Gray8 (2.0 MP only), 205 - YUYV
;OutputFormat=201
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA (default), 1 - VGA, 2 - SXGA (1.3MP), 3 - UXGA (2.0MP), 14 - 720p, 15 - 1280x960
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Input format. 0 - Compressed 8-bit BAYER (1.3MP or 2.0MP only), 1 - Compressed YUV422 (default in BULK), 2 - Jpeg, 5 - Uncompressed YUV422 (default in ISO), 6 - Uncompressed 8-bit BAYER (1.3MP or 2.0MP only), 7 - Uncompressed YUYV
InputFormat=5
; Anti Flicker. 0 - Off (default), 50 - 50Hz, 60 - 60 Hz.
;Flicker=50
; Image quality when using Jpeg. 1-10 (1 - Lowest, 10 - Highest (default))
;Quality=10
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=1
; Cropping area
[Image.Cropping]
;OffsetX=0
;OffsetY=0
;SizeX=320
;SizeY=240
;Enabled=1
[IR]
; Output format. 200 - RGB888, 203 - Grayscale 16-bit (default)
;OutputFormat=203
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA (default), 1 - VGA, 2 - SXGA(1.3MP), 4 - QQVGA. -14 1280x720, 15 1280x960,-16 1280x800, -17 640x400 -20 320x200,-21 480x640, -25 960x1280, -26 800x1280,-27 400x640
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=1
; Cropping area
[IR.Cropping]
;OffsetX=0
;OffsetY=0
;SizeX=320
;SizeY=240
;Enabled=1
@@ -1,17 +0,0 @@
[Log]
; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
Verbosity=0
LogToConsole=1
;LogToFile=1
;LogToAndroidLog=1
[Device]
;Override=
;RecordTo=
[Drivers]
; Location of the drivers, relative to OpenNI shared library location. When not provided, "OpenNI2/Drivers" will be used.
;Repository=OpenNI2/Drivers
; List of drivers to load, separated by commas. When not provided, OpenNI will try to load each shared library in Repository.
;List=
@@ -1,7 +0,0 @@
;---------------- Player Configuration -------------------
[Player]
; Speed. 1.0 - 1.0 * fps (default), Values can be R while R is real and grater the 0
;Speed=1.0
; Repeat. 1 - on (default), 0 - off
;Repeat=1
@@ -1,48 +0,0 @@
;---------------- PSLink Driver Default Configuration -------------------
[Device]
; USB interface to be used. 0 - FW Default, 1 - ISO endpoints (default on Windows), 2 - BULK endpoints (default on Linux/Mac/Android machines)
;UsbInterface=2
; Enable firmware logs. 0 - Off (default), 1 - On
;FirmwareLog=1
[Depth]
; Allows dumping all frames to files. 0 - Off (default), 1 - On
;DumpData=1
; Allow flipping the frame horizontally. 0 - Off, 1 - On (default)
;Mirror=0
; Compression of the data passed from device to host. 0 - None, 2 - 16z, 6 - 11-bit packed, 7 - 12-bit packed. Default is set by the firmware
;Compression=2
[Depth.VideoMode]
; Pixel Format. 100 - Depth 1 mm, 101 - Depth 100 um, 102 - Shifts 9.2, 103 - Shifts 9.3
;PixelFormat=100
; Requested X resolution
;XResolution=320
; Requested Y resolution
;YResolution=240
; Requested FPS
;FPS=30
[IR]
; Allows dumping all frames to files. 0 - Off (default), 1 - On
;DumpData=1
; Allow flipping the frame horizontally. 0 - Off, 1 - On (default)
;Mirror=0
; Compression of the data passed from device to host. 0 - None, 5 - 10-bit packed. Default is set by the firmware
;Compression=5
[IR.VideoMode]
; Pixel Format. 200 - RGB888, 202 - Grayscale 8-bit, 203 - Grayscale 16-bit
;PixelFormat=200
; Requested X resolution
;XResolution=320
; Requested Y resolution
;YResolution=240
; Requested FPS
;FPS=30
@@ -1,183 +0,0 @@
;---------------- Sensor Default Configuration -------------------
[Device]
; Mirroring. 0 - Off (default), 1 - On
;Mirror=1
; FrameSync. 0 - Off (default), 1 - On
;FrameSync=1
; Stream Data Timestamps. 0 - milliseconds, 1 - microseconds (default)
;HighResTimestamps=1
; Stream Data Timestamps Source. 0 - Firmware (default), 1 - Host
;HostTimestamps=0
; A filter for the firmware log. Default is determined by firmware.
;FirmwareLogFilter=0
; Automatic firmare log retrieval. 0 - Off (default), or the number of milliseconds between log retrievals operations.
;FirmwareLogInterval=1000
; Print firmware log to console when automatic firmware log retrieval is on. 0 - Off (default), 1 - On
;FirmwareLogPrint=1
; Is APC enabled. 0 - Off, 1 - On (default)
;APCEnabled=1
; USB interface to be used. 0 - FW Default, 1 - ISO endpoints (default on Windows), 2 - BULK endpoints (default on Linux/Mac/Android machines), 3 - ISO endpoints for low-bandwidth depth
UsbInterface=2
[Depth]
; Output format. 100 - 1mm depth values (default), 102 - u9.2 Shift values.
;OutputFormat=100
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA, 1 - VGA, 4 - QQVGA. Default: Arm - 4, other platforms - 0, -14 1280x720, 15 1280x960,-16 1280x800, -17 640x400 -20 320x200,-21 480x640, -25 960x1280, -26 800x1280,-27 400x640
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Min depth cutoff. 0-10000 mm (default is 0)
;MinDepthValue=0
; Max depth cutoff. 0-10000 mm (default is 10000)
;MaxDepthValue=10000
; Input format. 0 - Uncompressed 16-bit, 1 - PS Compression,2 - Packed 10-bit, 3 - Packed 11-bit, 4 - Packed 12-bit. Default: Arm - 4, other platforms - 3
InputFormat=3
; Registration. 0 - Off (default), 1 - On
;Registration=1
; Registration Type. 0 - Don't care (default), 1 - use hardware accelaration, 2 - perform in software
;RegistrationType=0
; software filter 0-off ,1--on (default)
;SoftFilter=0
; Depth Rotate 0-off(default) ,1--on (only atlas device support)
;DepthRotate=0
;Read Params (for test only)
;ReadParams=0
; dual sensor: 5.96 mm
;focallength=5.96
;dual sensor: 0.0052mm
;dPlanePixelSize=0.113967
;dPlaneDistance=130
;dual sensor: 75mm
;dEmitterDcmosDistance=7.500000
;dhorizontalFov=0.022600
;dverticalFov=0.796616
; Hole Filler. 0 - Off, 1 - On (default)
;HoleFilter=0
; White Balance. 0 - Off, 1 - On (default)
;WhiteBalancedEnabled=0
; Gain. 0-50 (0 - Auto, 1 - Min., 50 - Max.). Default value is set by firmware.
;Gain=0
; Close Range Mode. 0 - Off (default), 1 - On
;CloseRange=1
; GMC Mode. 0 - Off, 1 - On (default)
;GMCMode=0
; GMC Debug. 0 - Off (default), 1 - On
;GMCDebug=1
; Depth Auto Gain Region-of-Interest. Default values are set by firmware.
;DepthAGCBin0MinDepth=500
;DepthAGCBin0MaxDepth=800
;DepthAGCBin1MinDepth=1500
;DepthAGCBin1MaxDepth=1800
;DepthAGCBin2MinDepth=2500
;DepthAGCBin2MaxDepth=2800
;DepthAGCBin3MinDepth=3500
;DepthAGCBin3MaxDepth=3800
; Wavelength Correction Mechanism. 0 - Off (default), 1 - On
;WavelengthCorrection=1
; Wavelength Correction debug info. 0 - Off (default), 1 - On
;WavelengthCorrectionDebug=1
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=2
; Cropping area
[Depth.Cropping]
OffsetX=0
OffsetY=0
SizeX=320
SizeY=240
;Enabled=1
[Image]
; Output format. 200 - RGB888 (default), 201 - YUV422, 202 - Gray8 (2.0 MP only), 205 - YUYV
;OutputFormat=201
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA (default), 1 - VGA, 2 - SXGA (1.3MP), 3 - UXGA (2.0MP), 14 - 720p, 15 - 1280x960
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Input format. 0 - Compressed 8-bit BAYER (1.3MP or 2.0MP only), 1 - Compressed YUV422 (default in BULK), 2 - Jpeg, 5 - Uncompressed YUV422 (default in ISO), 6 - Uncompressed 8-bit BAYER (1.3MP or 2.0MP only), 7 - Uncompressed YUYV
InputFormat=5
; Anti Flicker. 0 - Off (default), 50 - 50Hz, 60 - 60 Hz.
;Flicker=50
; Image quality when using Jpeg. 1-10 (1 - Lowest, 10 - Highest (default))
;Quality=10
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=1
; Cropping area
[Image.Cropping]
;OffsetX=0
;OffsetY=0
;SizeX=320
;SizeY=240
;Enabled=1
[IR]
; Output format. 200 - RGB888, 203 - Grayscale 16-bit (default)
;OutputFormat=203
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA (default), 1 - VGA, 2 - SXGA(1.3MP), 4 - QQVGA. -14 1280x720, 15 1280x960,-16 1280x800, -17 640x400 -20 320x200,-21 480x640, -25 960x1280, -26 800x1280,-27 400x640
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=1
; Cropping area
[IR.Cropping]
;OffsetX=0
;OffsetY=0
;SizeX=320
;SizeY=240
;Enabled=1
@@ -1,17 +0,0 @@
[Log]
; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
Verbosity=0
LogToConsole=1
;LogToFile=1
;LogToAndroidLog=1
[Device]
;Override=
;RecordTo=
[Drivers]
; Location of the drivers, relative to OpenNI shared library location. When not provided, "OpenNI2/Drivers" will be used.
;Repository=OpenNI2/Drivers
; List of drivers to load, separated by commas. When not provided, OpenNI will try to load each shared library in Repository.
;List=
@@ -1,7 +0,0 @@
;---------------- Player Configuration -------------------
[Player]
; Speed. 1.0 - 1.0 * fps (default), Values can be R while R is real and grater the 0
;Speed=1.0
; Repeat. 1 - on (default), 0 - off
;Repeat=1
@@ -1,48 +0,0 @@
;---------------- PSLink Driver Default Configuration -------------------
[Device]
; USB interface to be used. 0 - FW Default, 1 - ISO endpoints (default on Windows), 2 - BULK endpoints (default on Linux/Mac/Android machines)
;UsbInterface=2
; Enable firmware logs. 0 - Off (default), 1 - On
;FirmwareLog=1
[Depth]
; Allows dumping all frames to files. 0 - Off (default), 1 - On
;DumpData=1
; Allow flipping the frame horizontally. 0 - Off, 1 - On (default)
;Mirror=0
; Compression of the data passed from device to host. 0 - None, 2 - 16z, 6 - 11-bit packed, 7 - 12-bit packed. Default is set by the firmware
;Compression=2
[Depth.VideoMode]
; Pixel Format. 100 - Depth 1 mm, 101 - Depth 100 um, 102 - Shifts 9.2, 103 - Shifts 9.3
;PixelFormat=100
; Requested X resolution
;XResolution=320
; Requested Y resolution
;YResolution=240
; Requested FPS
;FPS=30
[IR]
; Allows dumping all frames to files. 0 - Off (default), 1 - On
;DumpData=1
; Allow flipping the frame horizontally. 0 - Off, 1 - On (default)
;Mirror=0
; Compression of the data passed from device to host. 0 - None, 5 - 10-bit packed. Default is set by the firmware
;Compression=5
[IR.VideoMode]
; Pixel Format. 200 - RGB888, 202 - Grayscale 8-bit, 203 - Grayscale 16-bit
;PixelFormat=200
; Requested X resolution
;XResolution=320
; Requested Y resolution
;YResolution=240
; Requested FPS
;FPS=30
@@ -1,183 +0,0 @@
;---------------- Sensor Default Configuration -------------------
[Device]
; Mirroring. 0 - Off (default), 1 - On
;Mirror=1
; FrameSync. 0 - Off (default), 1 - On
;FrameSync=1
; Stream Data Timestamps. 0 - milliseconds, 1 - microseconds (default)
;HighResTimestamps=1
; Stream Data Timestamps Source. 0 - Firmware (default), 1 - Host
;HostTimestamps=0
; A filter for the firmware log. Default is determined by firmware.
;FirmwareLogFilter=0
; Automatic firmare log retrieval. 0 - Off (default), or the number of milliseconds between log retrievals operations.
;FirmwareLogInterval=1000
; Print firmware log to console when automatic firmware log retrieval is on. 0 - Off (default), 1 - On
;FirmwareLogPrint=1
; Is APC enabled. 0 - Off, 1 - On (default)
;APCEnabled=1
; USB interface to be used. 0 - FW Default, 1 - ISO endpoints (default on Windows), 2 - BULK endpoints (default on Linux/Mac/Android machines), 3 - ISO endpoints for low-bandwidth depth
UsbInterface=2
[Depth]
; Output format. 100 - 1mm depth values (default), 102 - u9.2 Shift values.
;OutputFormat=100
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA, 1 - VGA, 4 - QQVGA. Default: Arm - 4, other platforms - 0, -14 1280x720, 15 1280x960,-16 1280x800, -17 640x400 -20 320x200,-21 480x640, -25 960x1280, -26 800x1280,-27 400x640
Resolution=17
; Frames per second (default is 30)
;FPS=30
; Min depth cutoff. 0-10000 mm (default is 0)
;MinDepthValue=0
; Max depth cutoff. 0-10000 mm (default is 10000)
;MaxDepthValue=10000
; Input format. 0 - Uncompressed 16-bit, 1 - PS Compression,2 - Packed 10-bit, 3 - Packed 11-bit, 4 - Packed 12-bit. Default: Arm - 4, other platforms - 3
InputFormat=3
; Registration. 0 - Off (default), 1 - On
;Registration=1
; Registration Type. 0 - Don't care (default), 1 - use hardware accelaration, 2 - perform in software
;RegistrationType=0
; software filter 0-off ,1--on (default)
;SoftFilter=0
; Depth Rotate 0-off(default) ,1--on (only atlas device support)
;DepthRotate=0
;Read Params (for test only)
;ReadParams=0
; dual sensor: 5.96 mm
;focallength=5.96
;dual sensor: 0.0052mm
;dPlanePixelSize=0.113967
;dPlaneDistance=130
;dual sensor: 75mm
;dEmitterDcmosDistance=7.500000
;dhorizontalFov=0.022600
;dverticalFov=0.796616
; Hole Filler. 0 - Off, 1 - On (default)
;HoleFilter=0
; White Balance. 0 - Off, 1 - On (default)
;WhiteBalancedEnabled=0
; Gain. 0-50 (0 - Auto, 1 - Min., 50 - Max.). Default value is set by firmware.
;Gain=0
; Close Range Mode. 0 - Off (default), 1 - On
;CloseRange=1
; GMC Mode. 0 - Off, 1 - On (default)
;GMCMode=0
; GMC Debug. 0 - Off (default), 1 - On
;GMCDebug=1
; Depth Auto Gain Region-of-Interest. Default values are set by firmware.
;DepthAGCBin0MinDepth=500
;DepthAGCBin0MaxDepth=800
;DepthAGCBin1MinDepth=1500
;DepthAGCBin1MaxDepth=1800
;DepthAGCBin2MinDepth=2500
;DepthAGCBin2MaxDepth=2800
;DepthAGCBin3MinDepth=3500
;DepthAGCBin3MaxDepth=3800
; Wavelength Correction Mechanism. 0 - Off (default), 1 - On
;WavelengthCorrection=1
; Wavelength Correction debug info. 0 - Off (default), 1 - On
;WavelengthCorrectionDebug=1
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=2
; Cropping area
[Depth.Cropping]
OffsetX=0
OffsetY=0
SizeX=320
SizeY=240
;Enabled=1
[Image]
; Output format. 200 - RGB888 (default), 201 - YUV422, 202 - Gray8 (2.0 MP only), 205 - YUYV
;OutputFormat=201
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA (default), 1 - VGA, 2 - SXGA (1.3MP), 3 - UXGA (2.0MP), 14 - 720p, 15 - 1280x960
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Input format. 0 - Compressed 8-bit BAYER (1.3MP or 2.0MP only), 1 - Compressed YUV422 (default in BULK), 2 - Jpeg, 5 - Uncompressed YUV422 (default in ISO), 6 - Uncompressed 8-bit BAYER (1.3MP or 2.0MP only), 7 - Uncompressed YUYV
InputFormat=5
; Anti Flicker. 0 - Off (default), 50 - 50Hz, 60 - 60 Hz.
;Flicker=50
; Image quality when using Jpeg. 1-10 (1 - Lowest, 10 - Highest (default))
;Quality=10
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=1
; Cropping area
[Image.Cropping]
;OffsetX=0
;OffsetY=0
;SizeX=320
;SizeY=240
;Enabled=1
[IR]
; Output format. 200 - RGB888, 203 - Grayscale 16-bit (default)
;OutputFormat=203
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA (default), 1 - VGA, 2 - SXGA(1.3MP), 4 - QQVGA. -14 1280x720, 15 1280x960,-16 1280x800, -17 640x400 -20 320x200,-21 480x640, -25 960x1280, -26 800x1280,-27 400x640
Resolution=17
; Frames per second (default is 30)
;FPS=30
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=1
; Cropping area
[IR.Cropping]
;OffsetX=0
;OffsetY=0
;SizeX=320
;SizeY=240
;Enabled=1
@@ -1,17 +0,0 @@
[Log]
; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
Verbosity=0
LogToConsole=1
;LogToFile=1
;LogToAndroidLog=1
[Device]
;Override=
;RecordTo=
[Drivers]
; Location of the drivers, relative to OpenNI shared library location. When not provided, "OpenNI2/Drivers" will be used.
;Repository=OpenNI2/Drivers
; List of drivers to load, separated by commas. When not provided, OpenNI will try to load each shared library in Repository.
;List=
@@ -1,7 +0,0 @@
;---------------- Player Configuration -------------------
[Player]
; Speed. 1.0 - 1.0 * fps (default), Values can be R while R is real and grater the 0
;Speed=1.0
; Repeat. 1 - on (default), 0 - off
;Repeat=1
@@ -1,48 +0,0 @@
;---------------- PSLink Driver Default Configuration -------------------
[Device]
; USB interface to be used. 0 - FW Default, 1 - ISO endpoints (default on Windows), 2 - BULK endpoints (default on Linux/Mac/Android machines)
;UsbInterface=2
; Enable firmware logs. 0 - Off (default), 1 - On
;FirmwareLog=1
[Depth]
; Allows dumping all frames to files. 0 - Off (default), 1 - On
;DumpData=1
; Allow flipping the frame horizontally. 0 - Off, 1 - On (default)
;Mirror=0
; Compression of the data passed from device to host. 0 - None, 2 - 16z, 6 - 11-bit packed, 7 - 12-bit packed. Default is set by the firmware
;Compression=2
[Depth.VideoMode]
; Pixel Format. 100 - Depth 1 mm, 101 - Depth 100 um, 102 - Shifts 9.2, 103 - Shifts 9.3
;PixelFormat=100
; Requested X resolution
;XResolution=320
; Requested Y resolution
;YResolution=240
; Requested FPS
;FPS=30
[IR]
; Allows dumping all frames to files. 0 - Off (default), 1 - On
;DumpData=1
; Allow flipping the frame horizontally. 0 - Off, 1 - On (default)
;Mirror=0
; Compression of the data passed from device to host. 0 - None, 5 - 10-bit packed. Default is set by the firmware
;Compression=5
[IR.VideoMode]
; Pixel Format. 200 - RGB888, 202 - Grayscale 8-bit, 203 - Grayscale 16-bit
;PixelFormat=200
; Requested X resolution
;XResolution=320
; Requested Y resolution
;YResolution=240
; Requested FPS
;FPS=30
@@ -1,183 +0,0 @@
;---------------- Sensor Default Configuration -------------------
[Device]
; Mirroring. 0 - Off (default), 1 - On
;Mirror=1
; FrameSync. 0 - Off (default), 1 - On
;FrameSync=1
; Stream Data Timestamps. 0 - milliseconds, 1 - microseconds (default)
;HighResTimestamps=1
; Stream Data Timestamps Source. 0 - Firmware (default), 1 - Host
;HostTimestamps=0
; A filter for the firmware log. Default is determined by firmware.
;FirmwareLogFilter=0
; Automatic firmare log retrieval. 0 - Off (default), or the number of milliseconds between log retrievals operations.
;FirmwareLogInterval=1000
; Print firmware log to console when automatic firmware log retrieval is on. 0 - Off (default), 1 - On
;FirmwareLogPrint=1
; Is APC enabled. 0 - Off, 1 - On (default)
;APCEnabled=1
; USB interface to be used. 0 - FW Default, 1 - ISO endpoints (default on Windows), 2 - BULK endpoints (default on Linux/Mac/Android machines), 3 - ISO endpoints for low-bandwidth depth
UsbInterface=2
[Depth]
; Output format. 100 - 1mm depth values (default), 102 - u9.2 Shift values.
;OutputFormat=100
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA, 1 - VGA, 4 - QQVGA. Default: Arm - 4, other platforms - 0, -14 1280x720, 15 1280x960,-16 1280x800, -17 640x400 -20 320x200,-21 480x640, -25 960x1280, -26 800x1280,-27 400x640
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Min depth cutoff. 0-10000 mm (default is 0)
;MinDepthValue=0
; Max depth cutoff. 0-10000 mm (default is 10000)
;MaxDepthValue=10000
; Input format. 0 - Uncompressed 16-bit, 1 - PS Compression,2 - Packed 10-bit, 3 - Packed 11-bit, 4 - Packed 12-bit. Default: Arm - 4, other platforms - 3
InputFormat=3
; Registration. 0 - Off (default), 1 - On
;Registration=1
; Registration Type. 0 - Don't care (default), 1 - use hardware accelaration, 2 - perform in software
;RegistrationType=0
; software filter 0-off ,1--on (default)
;SoftFilter=0
; Depth Rotate 0-off(default) ,1--on (only atlas device support)
;DepthRotate=0
;Read Params (for test only)
;ReadParams=0
; dual sensor: 5.96 mm
;focallength=5.96
;dual sensor: 0.0052mm
;dPlanePixelSize=0.113967
;dPlaneDistance=130
;dual sensor: 75mm
;dEmitterDcmosDistance=7.500000
;dhorizontalFov=0.022600
;dverticalFov=0.796616
; Hole Filler. 0 - Off, 1 - On (default)
;HoleFilter=0
; White Balance. 0 - Off, 1 - On (default)
;WhiteBalancedEnabled=0
; Gain. 0-50 (0 - Auto, 1 - Min., 50 - Max.). Default value is set by firmware.
;Gain=0
; Close Range Mode. 0 - Off (default), 1 - On
;CloseRange=1
; GMC Mode. 0 - Off, 1 - On (default)
;GMCMode=0
; GMC Debug. 0 - Off (default), 1 - On
;GMCDebug=1
; Depth Auto Gain Region-of-Interest. Default values are set by firmware.
;DepthAGCBin0MinDepth=500
;DepthAGCBin0MaxDepth=800
;DepthAGCBin1MinDepth=1500
;DepthAGCBin1MaxDepth=1800
;DepthAGCBin2MinDepth=2500
;DepthAGCBin2MaxDepth=2800
;DepthAGCBin3MinDepth=3500
;DepthAGCBin3MaxDepth=3800
; Wavelength Correction Mechanism. 0 - Off (default), 1 - On
;WavelengthCorrection=1
; Wavelength Correction debug info. 0 - Off (default), 1 - On
;WavelengthCorrectionDebug=1
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=2
; Cropping area
[Depth.Cropping]
OffsetX=0
OffsetY=0
SizeX=320
SizeY=240
;Enabled=1
[Image]
; Output format. 200 - RGB888 (default), 201 - YUV422, 202 - Gray8 (2.0 MP only), 205 - YUYV
;OutputFormat=201
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA (default), 1 - VGA, 2 - SXGA (1.3MP), 3 - UXGA (2.0MP), 14 - 720p, 15 - 1280x960
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Input format. 0 - Compressed 8-bit BAYER (1.3MP or 2.0MP only), 1 - Compressed YUV422 (default in BULK), 2 - Jpeg, 5 - Uncompressed YUV422 (default in ISO), 6 - Uncompressed 8-bit BAYER (1.3MP or 2.0MP only), 7 - Uncompressed YUYV
InputFormat=5
; Anti Flicker. 0 - Off (default), 50 - 50Hz, 60 - 60 Hz.
;Flicker=50
; Image quality when using Jpeg. 1-10 (1 - Lowest, 10 - Highest (default))
;Quality=10
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=1
; Cropping area
[Image.Cropping]
;OffsetX=0
;OffsetY=0
;SizeX=320
;SizeY=240
;Enabled=1
[IR]
; Output format. 200 - RGB888, 203 - Grayscale 16-bit (default)
;OutputFormat=203
; Is stream mirrored. 0 - Off, 1 - On
;Mirror=1
; 0 - QVGA (default), 1 - VGA, 2 - SXGA(1.3MP), 4 - QQVGA. -14 1280x720, 15 1280x960,-16 1280x800, -17 640x400 -20 320x200,-21 480x640, -25 960x1280, -26 800x1280,-27 400x640
Resolution=1
; Frames per second (default is 30)
;FPS=30
; Cropping mode. 1 - Normal (default), 2 - Increased FPS, 3 - Software only
;CroppingMode=1
; Cropping area
[IR.Cropping]
;OffsetX=0
;OffsetY=0
;SizeX=320
;SizeY=240
;Enabled=1
Submodule src/waypoints deleted from 115553cfa8
+23
View File
@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 3.0.2)
project(waypoints)
## DECLARED RECONSTRUCTION - not the original package. See README.md.
##
## This package is Python only: one node, no libraries and no messages of its
## own, so the catkin side is just "install the script".
##
## Note what is deliberately NOT here: the rviz configuration used by
## p3dx_navigation references classes that the original package must have
## provided (waypoints/waypointPanel, waypoints/Waypoints), i.e. it built C++
## rviz plugins and exported a plugin description. Those plugins are not
## reproduced: inventing them would be an unverifiable guess, and rviz would
## fail to load them anyway. See README.md.
find_package(catkin REQUIRED)
catkin_package()
catkin_install_python(PROGRAMS
scripts/waypoints_server
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
+102
View File
@@ -0,0 +1,102 @@
# `waypoints` — a DECLARED RECONSTRUCTION
**This is not the original `waypoints` package.** The original is lost. What is
in this directory was written from the clues that survived in `p3dx-catkin`, on
the author's request ("já não tenho waypoints, se conseguires criar um,
agradecia, senão deixa estar. documenta em falta."). It says so here, in
`package.xml`, in `CMakeLists.txt` and in the node itself, so that nobody
mistakes it for the author's work. If the original ever turns up, it should
replace this directory.
## What is known — verified, with the evidence
1. **The original was a gitlink with no content anywhere.** This repository
recorded `src/waypoints` as index mode `160000` pointing at commit
**`115553cfa8c2ace122414ac5a9b235cd2e225693`**. That code does not exist in
any remote that could be found: not in the Gitea instance (`aneto/*`), not in
the author's GitHub account, not on the machine the check was run on, and not
on the web — the commit is not reachable from any candidate repository. The
author no longer has it. So the *original* is the thing that is missing now.
2. **Package name and node name** come from `guide.txt`, the only documented
interface:
```sh
source devel/setup.bash && rosrun waypoints waypoints_server
```
That gives, with certainty: the package is named `waypoints`, the executable
is named `waypoints_server`, and it is run with **no arguments**.
3. **There was a C++ rviz plugin side.** The rviz configuration that
`p3dx_navigation` loads (`src/p3dx_navigation/rviz/p3dx_navigation.rviz`)
references classes only this package could have provided:
- a panel: `Class: waypoints/waypointPanel`
- a tool: `Class: waypoints/Waypoints`, with `Topic: waypoint`
That is evidence that the original package built rviz plugins (rviz plugins
are C++) and that the topic name `waypoint` was in use.
## What is inferred — NOT verified
Everything about how the node actually talks is a guess. Where the guess is
anchored in a clue above, it says so.
| item | value here | why |
|---|---|---|
| language of the node | Python | the rviz classes prove C++ *plugins*, not a C++ *node*; see below |
| input topic | `waypoint` | the name the rviz tool publishes on — the only topic-name evidence in the repo |
| input type | `geometry_msgs/PoseStamped` | one pose per clicked point; the tool could just as well have sent a `PoseArray` |
| output topic | `waypoints` | the plural of the evidenced name; **not** evidenced |
| output type | `geometry_msgs/PoseArray` | the conventional "list of poses" message |
| latched output, `~publish_rate` 1 Hz | | a list that a late subscriber still needs |
| behaviour | append each incoming pose to a list; re-publish the whole list | the smallest thing that makes it a *server of waypoints* |
| parameters | `~frame_id` (`map`), `~input_topic`, `~output_topic`, `~publish_rate`, `~waypoints` | ROS convention, and useful for testing without rviz |
Nothing here was recovered from the original. No service, no action, no goal
dispatched to `move_base`, no message type and no rviz plugin of the original is
reproduced, because none of them is evidenced. In particular, **the rviz plugin
gap is not closed**: open `p3dx_navigation.rviz` without the original package and
rviz still reports `waypoints/Waypoints` / `waypoints/waypointPanel` as unknown
classes.
## Why Python, when the clues point at C++
The `waypoints/*` rviz classes prove the original built **C++ plugins**, but they
say nothing about the language of the node `waypoints_server`. The only surviving
part of the node's contract is `rosrun waypoints waypoints_server`: `rosrun`
selects an executable by *name*, and a Python script with that name satisfies it
exactly. Python is also the only part of this that can be checked in the
environment where it was written (`python3 -m py_compile` — there is no ROS and
no compiler toolchain there): a C++ node whose interface is a guess could not be
compiled or tested, so it would only be a more expensive guess. If the author or
the original plugins ever point at C++, `scripts/waypoints_server` is short
enough to rewrite.
## Before you rely on this
**Confirm the interface first.** Do not treat `waypoint` / `waypoints` as a
contract: ask the author, or use the original if it reappears, before pointing
another package at these topics. `tests/run.sh` only checks that this package is
structurally complete and that the node name matches what `guide.txt` runs; it
cannot check the interface, because no ROS was available where it was written.
## Running it (as reconstructed)
```sh
source devel/setup.bash
rosrun waypoints waypoints_server
```
Then, from another shell:
```sh
rostopic pub -1 /waypoint geometry_msgs/PoseStamped \
'{header: {frame_id: map}, pose: {position: {x: 1.0, y: 0.0}}}'
rostopic echo /waypoints
```
## Licence
GPL-3.0, like the rest of this repository (Copyright (C) 2024 André Neto) — see
[`../../LICENSE`](../../LICENSE). This directory makes no copyright claim over
the lost original; it is a reconstruction that declares itself.
+38
View File
@@ -0,0 +1,38 @@
<?xml version="1.0"?>
<package format="2">
<!--
DECLARED RECONSTRUCTION - this is NOT the original `waypoints` package.
The original was recorded in p3dx-catkin as a gitlink (index mode 160000)
pointing at commit 115553cfa8c2ace122414ac5a9b235cd2e225693, and that code
does not exist in any remote that could be found. What is in this directory
was written from the clues that survived in the repository. Read README.md
here before relying on the interface: only the package name and the node
name are documented; the rest is inferred.
-->
<name>waypoints</name>
<version>0.0.1</version>
<description>
Simple waypoint list server for the P3DX (Pioneer 3-DX) workspace: it keeps a
list of 2-D waypoints and publishes it as a geometry_msgs/PoseArray.
THIS PACKAGE IS A RECONSTRUCTION, NOT THE ORIGINAL WORK. The original
`waypoints` package was lost (the gitlink pointed at commit
115553cfa8c2ace122414ac5a9b235cd2e225693, which is not in any known remote).
See README.md in this package for what is known, what is inferred and what
is still missing.
</description>
<!-- Taken from this repository's git history; correct it if it is wrong. -->
<maintainer email="mail.me@ags-neto.com">Andre Neto</maintainer>
<license>GPLv3</license>
<author email="mail.me@ags-neto.com">Andre Neto</author>
<!-- Only what scripts/waypoints_server actually imports. -->
<buildtool_depend>catkin</buildtool_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>geometry_msgs</exec_depend>
<export>
</export>
</package>
+133
View File
@@ -0,0 +1,133 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# waypoints_server - keep a list of 2-D waypoints and publish it as a PoseArray.
#
# Copyright (C) 2024 Andre Neto
# SPDX-License-Identifier: GPL-3.0-only
#
# Part of the p3dx-catkin workspace, licensed GPL-3.0; see ../../LICENSE.
#
# RECONSTRUCTION, NOT THE ORIGINAL. The original `waypoints` package was lost
# (gitlink commit 115553cfa8c2ace122414ac5a9b235cd2e225693, absent from every
# known remote). Only the node name below is documented - guide.txt runs
# `rosrun waypoints waypoints_server`. Every topic name, message type and
# parameter is inferred. Read README.md next to this file before depending on
# the interface.
"""waypoints_server: append incoming poses to a list and publish the list.
Interface (inferred except the node name; see README.md):
subscribes ~input_topic (default "waypoint") geometry_msgs/PoseStamped
publishes ~output_topic (default "waypoints") geometry_msgs/PoseArray (latched)
Parameters:
~frame_id frame of the published PoseArray (default "map")
~input_topic topic carrying one geometry_msgs/PoseStamped per waypoint
~output_topic topic carrying the whole list as geometry_msgs/PoseArray
~publish_rate how often, in Hz, the list is re-published (default 1.0;
<= 0 publishes only when a waypoint arrives)
~waypoints optional seed list, e.g. [[1.0, 0.0], [2.0, 1.0, 1.57]]
The published list is latched, so a subscriber that starts later still gets it.
Nothing is published while the list is empty. Incoming frames are NOT
transformed: a pose is taken as it arrives (a warning is logged once if its
frame differs from ~frame_id).
"""
import math
import rospy
from geometry_msgs.msg import Pose, PoseArray, PoseStamped
def _quaternion_to_yaw(quaternion):
"""Yaw (radians) of a quaternion, ignoring roll and pitch."""
siny_cosp = 2.0 * (quaternion.w * quaternion.z + quaternion.x * quaternion.y)
cosy_cosp = 1.0 - 2.0 * (quaternion.y * quaternion.y + quaternion.z * quaternion.z)
return math.atan2(siny_cosp, cosy_cosp)
def _yaw_to_quaternion(yaw):
"""Quaternion (x, y, z, w) for a pure yaw rotation."""
return 0.0, 0.0, math.sin(yaw / 2.0), math.cos(yaw / 2.0)
class WaypointsServer(object):
def __init__(self):
self.frame_id = rospy.get_param('~frame_id', 'map')
input_topic = rospy.get_param('~input_topic', 'waypoint')
output_topic = rospy.get_param('~output_topic', 'waypoints')
rate = float(rospy.get_param('~publish_rate', 1.0))
self.waypoints = [] # list of (x, y, yaw)
self.warned_about_frame = False
for item in rospy.get_param('~waypoints', []):
waypoint = self._parse_waypoint(item)
if waypoint is not None:
self.waypoints.append(waypoint)
self.publisher = rospy.Publisher(output_topic, PoseArray, queue_size=1, latch=True)
self.subscriber = rospy.Subscriber(input_topic, PoseStamped,
self._on_waypoint, queue_size=10)
rospy.loginfo('waypoints_server (RECONSTRUCTION, not the original package): '
'%d seed waypoint(s); %s -> %s, frame "%s"',
len(self.waypoints), input_topic, output_topic, self.frame_id)
self.timer = None
if rate > 0.0:
self.timer = rospy.Timer(rospy.Duration(1.0 / rate), self._publish)
@staticmethod
def _parse_waypoint(item):
"""Accept [x, y], [x, y, theta], {'x':, 'y':, 'theta':} - else None."""
try:
if isinstance(item, dict):
return (float(item['x']), float(item['y']), float(item.get('theta', 0.0)))
return (float(item[0]), float(item[1]),
float(item[2]) if len(item) > 2 else 0.0)
except (TypeError, IndexError, KeyError, ValueError) as exc:
rospy.logwarn('waypoints_server: ignoring malformed waypoint %s (%s)', item, exc)
return None
def _on_waypoint(self, message):
position = message.pose.position
frame = message.header.frame_id
if frame and frame != self.frame_id and not self.warned_about_frame:
rospy.logwarn('waypoints_server: waypoint arrives in frame "%s" but this node '
'publishes in "%s" and does NOT transform frames', frame, self.frame_id)
self.warned_about_frame = True
self.waypoints.append((position.x, position.y,
_quaternion_to_yaw(message.pose.orientation)))
rospy.loginfo('waypoints_server: waypoint %d added (%.3f, %.3f)',
len(self.waypoints), position.x, position.y)
self._publish(None)
def _publish(self, _event):
if not self.waypoints:
return
array = PoseArray()
array.header.stamp = rospy.Time.now()
array.header.frame_id = self.frame_id
for x, y, yaw in self.waypoints:
pose = Pose()
pose.position.x = x
pose.position.y = y
pose.position.z = 0.0
(pose.orientation.x, pose.orientation.y,
pose.orientation.z, pose.orientation.w) = _yaw_to_quaternion(yaw)
array.poses.append(pose)
self.publisher.publish(array)
def main():
rospy.init_node('waypoints_server')
WaypointsServer()
rospy.spin()
if __name__ == '__main__':
main()
+9
View File
@@ -0,0 +1,9 @@
# Submodules whose origin has been identified and verified.
#
# One entry per line: "<path> <url>". Tests/run.sh checks that .gitmodules
# declares exactly these URLs, so a wrong or edited URL is caught even without
# network access. Reachability is not checked here (tests/run.sh stays offline).
#
# src/rosaria -> verified: commit 204dc0c6785abb4037c1c5ee76439cf5f50cb880
# exists on that repository's master branch.
src/rosaria https://github.com/amor-ros-pkg/rosaria.git
+31
View File
@@ -0,0 +1,31 @@
# Gitlinks (index mode 160000) that are KNOWN to have no `.gitmodules` entry.
#
# THERE ARE NONE ANY MORE. Every gitlink left in the index (`src/rosaria`) is
# declared in `.gitmodules`, and the historical `src/waypoints` gitlink was
# replaced by in-tree content written as a DECLARED RECONSTRUCTION (see
# `src/waypoints/README.md`). tests/run.sh fails if a gitlink turns up that is
# not declared, so an unmapped one cannot come back unnoticed.
#
# One path per line, relative to the repository root. Blank lines and lines
# starting with '#' are ignored.
#
# tests/run.sh FAILS if a gitlink shows up that is not listed here (a
# regression), and only prints a NOTE if a path listed here is no longer a gap
# (meaning this baseline is stale and should be pruned).
#
# What is genuinely missing now is NOT the waypoints code (that was
# reconstructed) but the ORIGINAL, plus a documentation-conformance gap:
#
# * The original `waypoints` package. The gitlink commit
# 115553cfa8c2ace122414ac5a9b235cd2e225693 exists in no known remote (not in
# Gitea, not in the author's GitHub account, not on the machine, not on the
# web) and the author no longer has it, so the original work is still lost -
# and with it the rviz plugins that p3dx_navigation.rviz expects
# (`waypoints/waypointPanel`, `waypoints/Waypoints`), which the declared
# reconstruction in `src/waypoints/` does not reproduce.
#
# * `darknet_ros`, which the OBJECT DETECTION part of guide.txt runs
# (`roslaunch darknet_ros darknet_ros.launch`) and which is not under `src/`:
# a documentation-conformance gap, not a gitlink.
#
# Both are recorded in README.md and are not fixed here.
+153
View File
@@ -0,0 +1,153 @@
#!/usr/bin/env bash
#
# tests/negative.sh - proves that tests/run.sh has teeth.
#
# Each case copies the working tree into a temporary directory, breaks exactly
# one thing THERE, and asserts that tests/run.sh then fails with the expected
# check id. Nothing in the real repository is modified: every mutation happens
# in the throwaway copy (one of them even commits there, to turn src/waypoints
# back into a gitlink).
#
# Usage: tests/negative.sh
# Exit status: 0 = every case behaved as expected.
set -uo pipefail
ROOT=$(git rev-parse --show-toplevel 2>/dev/null) || true
if [ -z "${ROOT:-}" ]; then
printf 'tests/negative.sh: not inside a git work tree\n' >&2
exit 2
fi
cd "$ROOT" || exit 2
TMP=$(mktemp -d)
trap 'rm -rf "$TMP"' EXIT
fails=0
# --- mutations, each executed with the throwaway copy as cwd ---------------
mut_none() { :; }
# make src/rosaria an undeclared gitlink again (its .gitmodules section gone)
mut_drop_rosaria_entry() {
awk '
/^\[submodule "src\/rosaria"\]/ { skip = 1; next }
/^\[/ { skip = 0 }
!skip { print }
' .gitmodules > .gitmodules.new
mv .gitmodules.new .gitmodules
}
# no .gitmodules at all
mut_hide_gitmodules() { mv .gitmodules .gitmodules.hidden; }
# an entry that matches no gitlink
mut_add_orphan_entry() {
{
printf '\n[submodule "src/does-not-exist"]\n'
printf '\tpath = src/does-not-exist\n'
printf '\turl = https://example.invalid/does-not-exist.git\n'
} >> .gitmodules
}
# a declared package that lost a required file
mut_break_package() { mv src/robot/CMakeLists.txt src/robot/CMakeLists.txt.hidden; }
# --- the waypoints package (the declared reconstruction) -------------------
# the node that guide.txt runs is gone
mut_drop_waypoints_node() { rm -f src/waypoints/scripts/waypoints_server; }
# the package lost its package.xml
mut_drop_waypoints_package_xml() { mv src/waypoints/package.xml src/waypoints/package.xml.hidden; }
# the node is not executable any more, so rosrun would not run it
mut_waypoints_node_not_executable() { chmod -x src/waypoints/scripts/waypoints_server; }
# the node no longer initialises itself under the name guide.txt runs
mut_waypoints_node_renamed() {
sed -i "s/init_node('waypoints_server')/init_node('something_else')/" \
src/waypoints/scripts/waypoints_server
}
# the node stops being valid Python
mut_waypoints_syntax_error() {
printf '\ndef broken(:\n' >> src/waypoints/scripts/waypoints_server
}
# the reconstruction stops declaring itself
mut_waypoints_no_declaration() { rm -f src/waypoints/README.md; }
# the fix is undone: src/waypoints goes back to being a gitlink with no content
mut_waypoints_back_to_gitlink() {
rm -rf src/waypoints
git rm -r --cached --quiet src/waypoints >/dev/null 2>&1
git update-index --add --cacheinfo \
160000,115553cfa8c2ace122414ac5a9b235cd2e225693,src/waypoints
git -c user.name=negative -c user.email=negative@invalid commit \
--quiet -m "back to a gitlink" >/dev/null 2>&1
}
# --- runner ---------------------------------------------------------------
case_expect() {
local label=$1 expect=$2
local dir="$TMP/$label"
mkdir -p "$dir"
cp -a "$ROOT/." "$dir/"
( cd "$dir" && "$label" )
local out rc
out=$(cd "$dir" && tests/run.sh 2>&1)
rc=$?
printf -- '--- %s ---\n' "$label"
if [ "$expect" = "PASS" ]; then
if [ "$rc" -eq 0 ]; then
printf ' PASS run.sh exited 0 as expected\n'
else
printf ' FAIL run.sh exited %s, expected 0\n' "$rc"
printf '%s\n' "$out" | sed 's/^/ /'
fails=$((fails + 1))
fi
return 0
fi
if [ "$rc" -eq 0 ]; then
printf ' FAIL run.sh exited 0, but [%s] was expected to fail\n' "$expect"
fails=$((fails + 1))
elif printf '%s\n' "$out" | grep -q "FAIL \[$expect\]"; then
printf ' PASS run.sh failed with [%s] (exit %s)\n' "$expect" "$rc"
else
printf ' FAIL run.sh failed, but without the expected id [%s]\n' "$expect"
printf '%s\n' "$out" | sed 's/^/ /'
fails=$((fails + 1))
fi
return 0
}
echo "== negative tests for tests/run.sh =="
echo
# The positive control runs first: on an untouched copy the suite must be green,
# so any failure below really is caused by the mutation and not by a broken suite.
case_expect mut_none PASS
case_expect mut_drop_rosaria_entry gitlink-undeclared
case_expect mut_hide_gitmodules gitmodules-missing
case_expect mut_add_orphan_entry gitmodules-orphan
case_expect mut_break_package cmakelists-missing
case_expect mut_drop_waypoints_node waypoints-node-present
case_expect mut_drop_waypoints_package_xml waypoints-package-xml
case_expect mut_waypoints_node_not_executable waypoints-node-executable
case_expect mut_waypoints_node_renamed waypoints-node-name
case_expect mut_waypoints_syntax_error waypoints-python-syntax
case_expect mut_waypoints_no_declaration waypoints-declared
case_expect mut_waypoints_back_to_gitlink waypoints-still-gitlink
echo
if [ "$fails" -eq 0 ]; then
echo "ALL NEGATIVE CASES BEHAVED AS EXPECTED"
exit 0
fi
printf '%s negative case(s) did not behave as expected\n' "$fails"
exit 1
Executable
+430
View File
@@ -0,0 +1,430 @@
#!/usr/bin/env bash
#
# tests/run.sh - integrity checks for a clean clone of p3dx-catkin.
#
# These checks verify what CAN be verified without ROS: that a fresh clone
# brings real code instead of empty submodule directories, that every package
# recorded in the index is complete, and that every in-tree <depend> points at
# a package that actually exists.
#
# What this does NOT prove: that the workspace builds. There is no ROS in the
# environment where these checks were written, so catkin_make was never run.
#
# Usage, from a clean clone:
# git clone <url> p3dx-catkin
# cd p3dx-catkin
# git submodule update --init -- src/rosaria
# tests/run.sh
#
# Exit status: 0 = every check passed; non-zero = at least one check failed.
# Note: src/rosaria is a submodule declared in .gitmodules, but the UNTARGETED
# `git submodule update --init` is still not used here: initialise the declared
# submodule by path, as above. (The historical src/waypoints gitlink - the one
# that used to make the untargeted command abort - is gone: it is now in-tree
# content written as a DECLARED RECONSTRUCTION. See section 8.)
#
set -uo pipefail
ROOT=$(git rev-parse --show-toplevel 2>/dev/null) || true
if [ -z "${ROOT:-}" ]; then
printf 'tests/run.sh: not inside a git work tree\n' >&2
exit 2
fi
cd "$ROOT" || exit 2
failed=0
pass() { printf 'PASS [%s] %s\n' "$1" "$2"; }
fail() { printf 'FAIL [%s] %s\n' "$1" "$2"; failed=1; }
note() { printf 'NOTE [%s] %s\n' "$1" "$2"; }
# has_word <needle> <space-separated words>
has_word() {
case " ${2:-} " in
*" $1 "*) return 0 ;;
*) return 1 ;;
esac
}
# Read a one-column list file, skipping blanks and # comments.
read_list() {
[ -f "$1" ] || return 0
while IFS= read -r line || [ -n "$line" ]; do
case "$line" in
'' | '#'*) continue ;;
esac
printf '%s\n' "$line"
done < "$1"
}
known=$(read_list tests/known-gaps.txt | tr '\n' ' ')
echo "== p3dx-catkin integrity checks =="
echo "root: $ROOT"
echo
# --- 1. every package directory in the index is complete -------------------
npkg=0
allnames=""
while IFS=$'\t' read -r meta path; do
[ "${meta%% *}" = "040000" ] || continue
npkg=$((npkg + 1))
if [ ! -f "$path/package.xml" ]; then
fail "package-xml-missing" "$path has no package.xml"
continue
fi
if [ ! -f "$path/CMakeLists.txt" ]; then
fail "cmakelists-missing" "$path has no CMakeLists.txt"
fi
declared_name=$(sed -n 's:.*<name>[[:space:]]*\([^<]*\)</name>.*:\1:p' "$path/package.xml" 2>/dev/null | head -1 | tr -d ' \t\r')
if [ -z "$declared_name" ]; then
fail "package-name-missing" "$path/package.xml declares no <name>"
elif has_word "$declared_name" "$allnames"; then
fail "package-name-duplicate" "the package name '$declared_name' is declared by more than one package.xml"
fi
# NB: in catkin the directory name need not equal the package name -
# src/ros_astra_camera declares <name>astra_camera</name> - so the two are
# deliberately NOT compared.
allnames="$allnames $declared_name"
done < <(git ls-tree HEAD src/)
if [ "$npkg" -gt 0 ]; then
pass "packages-complete" "$npkg package directories in the index have package.xml + CMakeLists.txt"
else
fail "no-packages" "no package directories found under src/ in the index"
fi
echo
# --- 2. src/CMakeLists.txt is the catkin toplevel symlink ------------------
sl=$(git ls-tree HEAD src/CMakeLists.txt)
if [ -z "$sl" ]; then
fail "toplevel-missing" "src/CMakeLists.txt is not tracked"
else
slmode=${sl%% *}
slsha=$(printf '%s' "$sl" | awk '{print $3}')
if [ "$slmode" != "120000" ]; then
fail "toplevel-not-symlink" "src/CMakeLists.txt is mode $slmode, expected 120000 (catkin toplevel symlink)"
else
sltarget=$(git cat-file blob "$slsha" 2>/dev/null)
case "$sltarget" in
*catkin/cmake/toplevel.cmake) pass "toplevel-symlink" "src/CMakeLists.txt -> $sltarget" ;;
*) fail "toplevel-target" "src/CMakeLists.txt points at '$sltarget', expected catkin's toplevel.cmake" ;;
esac
fi
fi
echo
# --- 3. gitlinks vs .gitmodules -------------------------------------------
gitlinks=""
unmapped=""
while IFS=$'\t' read -r meta path; do
[ "${meta%% *}" = "160000" ] || continue
gitlinks="$gitlinks $path"
done < <(git ls-tree HEAD src/)
ngit=$(printf '%s' "$gitlinks" | wc -w)
declared=""
if [ -f .gitmodules ]; then
declared=$(git config -f .gitmodules --get-regexp '^submodule\..*\.path$' 2>/dev/null | awk '{print $2}' | tr '\n' ' ')
else
fail "gitmodules-missing" ".gitmodules does not exist, but the index has gitlinks:$gitlinks"
fi
for p in $gitlinks; do
if ! has_word "$p" "$declared"; then
unmapped="$unmapped $p"
if has_word "$p" "$known"; then
note "gitlink-known-gap" "$p is a gitlink with no .gitmodules entry (known gap, see tests/known-gaps.txt)"
else
fail "gitlink-undeclared" "$p is a gitlink (mode 160000) with no .gitmodules entry"
fi
fi
done
for p in $declared; do
if ! has_word "$p" "$gitlinks"; then
fail "gitmodules-orphan" ".gitmodules declares '$p', which is not a gitlink in the index"
fi
done
for p in $known; do
if ! has_word "$p" "$gitlinks" || has_word "$p" "$declared"; then
note "known-gap-stale" "tests/known-gaps.txt lists '$p', which is no longer a gap"
fi
done
if [ -n "$unmapped" ]; then
note "submodule-command-blocked" "unmapped gitlink(s):$unmapped - plain 'git submodule update --init' and 'git submodule status' abort; initialise the declared paths explicitly: git submodule update --init -- src/rosaria"
fi
echo "($ngit gitlink(s) in the index; $(printf '%s' "$declared" | wc -w) declared in .gitmodules)"
echo
# --- 4. the verified submodule resolves ------------------------------------
pin=$(git ls-tree HEAD src/rosaria 2>/dev/null | awk '{print $3}')
if [ -z "$pin" ]; then
fail "rosaria-not-gitlink" "src/rosaria is not a gitlink in the index"
else
if [ -f src/rosaria/package.xml ] && [ -f src/rosaria/CMakeLists.txt ]; then
pass "rosaria-populated" "src/rosaria brings package.xml and CMakeLists.txt (not an empty directory)"
else
fail "rosaria-populated" "src/rosaria is empty - run: git submodule update --init -- src/rosaria"
fi
actual=""
if [ -e src/rosaria/.git ]; then
actual=$(git -C src/rosaria rev-parse HEAD 2>/dev/null)
fi
if [ -n "$actual" ]; then
if [ "$actual" = "$pin" ]; then
pass "rosaria-pin" "src/rosaria checked out at the pinned commit $pin"
else
fail "rosaria-pin" "src/rosaria is at $actual but the index pins $pin"
fi
else
note "rosaria-pin" "src/rosaria has no git metadata, cannot compare against the pin $pin"
fi
fi
# the declared URL is the one that was verified by hand
while read -r epath eurl; do
case "$epath" in '' | '#'*) continue ;; esac
got=$(git config -f .gitmodules --get "submodule.$epath.url" 2>/dev/null)
if [ "$got" = "${eurl:-}" ]; then
pass "submodule-url" "$epath is declared with the verified URL"
else
fail "submodule-url" "$epath is declared with '${got:-<nothing>}', expected '$eurl'"
fi
done < <(read_list tests/expected-submodules.txt)
echo
# --- 5. in-tree <depend> entries point at packages that exist --------------
edges=0
broken=0
for d in src/*/; do
[ -f "$d/package.xml" ] || continue
pkg=$(basename "$d")
for n in $(sed -n 's:.*<\(depend\|build_depend\|build_export_depend\|exec_depend\|run_depend\)>[[:space:]]*\([^<]*\)</.*:\2:p' "$d/package.xml" | tr -d ' \t\r'); do
# only dependencies that name a directory inside this workspace
[ -d "src/$n" ] || continue
edges=$((edges + 1))
if [ ! -f "src/$n/package.xml" ]; then
broken=$((broken + 1))
fail "dep-unresolved" "$pkg declares a dependency on '$n', but src/$n has no package.xml"
fi
done
done
if [ "$edges" -gt 0 ] && [ "$broken" -eq 0 ]; then
pass "deps-in-tree" "$edges in-tree dependency edge(s) resolve to a real package"
fi
# guard against this check going vacuous: the edge that motivated all of this
if [ -f src/robot/package.xml ]; then
if grep -q '<depend>rosaria</depend>' src/robot/package.xml; then
pass "robot-depends-rosaria" "src/robot still declares <depend>rosaria</depend>"
else
fail "robot-depends-rosaria" "src/robot no longer declares <depend>rosaria</depend>; this check lost its purpose"
fi
fi
echo
# --- 6. every package.xml is well-formed XML -------------------------------
if command -v python3 >/dev/null 2>&1; then
badxml=$(python3 - <<'PYEOF'
import glob
import xml.etree.ElementTree as ET
for f in sorted(glob.glob('src/*/package.xml')):
try:
ET.parse(f)
except Exception as exc:
print('%s: %s' % (f, exc))
PYEOF
)
if [ -n "$badxml" ]; then
while IFS= read -r line; do fail "package-xml-invalid" "$line"; done <<EOS
$badxml
EOS
else
pass "package-xml-wellformed" "every src/*/package.xml parses as XML"
fi
else
note "package-xml-wellformed" "python3 is not available, XML check skipped"
fi
echo
# --- 7. every known gap is documented in the README -----------------------
for p in $known; do
if grep -q "$(basename "$p")" README.md 2>/dev/null; then
pass "gap-documented" "$p is documented in README.md"
else
fail "gap-undocumented" "$p is a known gap but README.md does not mention it"
fi
done
echo
# --- 8. the waypoints package: a DECLARED RECONSTRUCTION -------------------
# src/waypoints used to be a gitlink (index mode 160000) pointing at commit
# 115553cfa8c2ace122414ac5a9b235cd2e225693, and that code does not exist in any
# known remote - the ORIGINAL is lost for good. It is now plain in-tree content,
# written from the clues that survived this repository and declared as a
# reconstruction (src/waypoints/README.md).
#
# What these checks prove: the package is complete, the node it ships is the one
# guide.txt runs, it is executable, and its Python parses. What they CANNOT
# prove: that it runs, that a workspace builds (there is no ROS here), or that
# the interface is the original one - the topics are inferred, not recovered.
wp=src/waypoints
# 8a. the gitlink is gone: the path must be in-tree content now
wpmode=$(git ls-tree HEAD src/waypoints 2>/dev/null | awk '{print $1}' | head -1)
if [ "$wpmode" = "160000" ]; then
fail "waypoints-still-gitlink" "$wp is still a gitlink (mode 160000): its code lives elsewhere and a clean clone brings an empty directory"
elif [ -n "$wpmode" ]; then
pass "waypoints-in-tree" "$wp is tracked as in-tree content (mode $wpmode), not as a gitlink"
else
fail "waypoints-in-tree" "$wp is not tracked in the index at all"
fi
# 8b. the node name is read FROM guide.txt, never hard-coded in this suite
wpnode=$(sed -n 's/.*rosrun[[:space:]][[:space:]]*waypoints[[:space:]][[:space:]]*\([^[:space:]]\{1,\}\).*/\1/p' guide.txt 2>/dev/null | head -1 | tr -d '\r')
if [ -z "$wpnode" ]; then
fail "waypoints-guide-node" "guide.txt no longer shows 'rosrun waypoints <node>'; this suite lost its anchor"
else
pass "waypoints-guide-node" "guide.txt runs 'rosrun waypoints $wpnode'"
fi
# 8c. package.xml + CMakeLists.txt (section 1 covers tracked packages in
# general; this repeats it for waypoints so the reconstruction is checked even
# if that general check is ever loosened)
if [ -f "$wp/package.xml" ]; then
wpname=$(sed -n 's:.*<name>[[:space:]]*\([^<]*\)</name>.*:\1:p' "$wp/package.xml" | head -1 | tr -d ' \t\r')
if [ "$wpname" = "waypoints" ]; then
pass "waypoints-package-xml" "$wp/package.xml declares <name>waypoints</name>"
else
fail "waypoints-package-xml" "$wp/package.xml declares <name>${wpname:-<nothing>}</name>, expected 'waypoints' (the name in guide.txt)"
fi
else
fail "waypoints-package-xml" "$wp has no package.xml"
fi
if [ -f "$wp/CMakeLists.txt" ]; then
pass "waypoints-cmakelists" "$wp/CMakeLists.txt exists"
else
fail "waypoints-cmakelists" "$wp has no CMakeLists.txt"
fi
# 8d. the executable guide.txt names, executable and self-consistent
wpnode_path=""
if [ -n "$wpnode" ]; then
for cand in "$wp/scripts/$wpnode" "$wp/bin/$wpnode" "$wp/$wpnode"; do
if [ -f "$cand" ]; then wpnode_path="$cand"; break; fi
done
fi
pyfiles=""
if [ -n "$wpnode_path" ]; then
pass "waypoints-node-present" "the node guide.txt runs is at $wpnode_path"
nodemode=$(git ls-files -s -- "$wpnode_path" | awk '{print $1}' | head -1)
if [ "$nodemode" = "100755" ] && [ -x "$wpnode_path" ]; then
pass "waypoints-node-executable" "$wpnode_path is executable (index mode 100755 and +x on disk), so rosrun can find it"
else
fail "waypoints-node-executable" "$wpnode_path has index mode ${nodemode:-<untracked>} and is$( [ -x "$wpnode_path" ] || printf ' not') +x; rosrun needs an executable"
fi
if head -1 -- "$wpnode_path" 2>/dev/null | grep -q '^#!.*python'; then
pyfiles="$pyfiles $wpnode_path"
if grep -q "init_node(['\"]$wpnode['\"]" "$wpnode_path"; then
pass "waypoints-node-name" "$wpnode_path initialises the node as '$wpnode', the name guide.txt runs"
else
fail "waypoints-node-name" "$wpnode_path does not call init_node('$wpnode')"
fi
elif grep -q "ros::init([^;]*[\"']$wpnode[\"']" "$wpnode_path" 2>/dev/null; then
pass "waypoints-node-name" "$wpnode_path initialises the node as '$wpnode', the name guide.txt runs"
else
fail "waypoints-node-name" "$wpnode_path initialises no node named '$wpnode' (neither init_node nor ros::init)"
fi
else
fail "waypoints-node-present" "no executable named '${wpnode:-<unknown>}' under $wp (scripts/, bin/ or the package root)"
fi
# 8e. every Python file in the package parses (python3 -m py_compile, with the
# .pyc thrown away in a temp dir so the tree stays clean), or - if the package
# is C++ - it has the obvious ROS structure. Neither proves it BUILDS.
while IFS= read -r f; do
[ -f "$f" ] || continue
case "$f" in
*.py) pyfiles="$pyfiles $f" ;;
esac
done < <(git ls-files -- "$wp")
pyfiles=$(printf '%s\n' $pyfiles | sort -u | tr '\n' ' ')
if [ -n "${pyfiles// /}" ]; then
if command -v python3 >/dev/null 2>&1; then
pycdir=$(mktemp -d)
badpy=""
for f in $pyfiles; do
if ! python3 -c 'import py_compile, sys; py_compile.compile(sys.argv[1], cfile=sys.argv[2], doraise=True)' \
"$f" "$pycdir/out.pyc" >/dev/null 2>&1; then
badpy="$badpy $f"
fi
done
rm -rf "$pycdir"
if [ -z "$badpy" ]; then
pass "waypoints-python-syntax" "python3 -m py_compile accepts:$pyfiles"
else
fail "waypoints-python-syntax" "python3 -m py_compile rejects:$badpy"
fi
else
note "waypoints-python-syntax" "python3 is not available, syntax check skipped"
fi
else
cppfiles=$(git ls-files -- "$wp" | grep -E '\.(cpp|cc|cxx)$' | tr '\n' ' ')
if [ -n "${cppfiles// /}" ]; then
badcpp=""
for f in $cppfiles; do
if ! grep -q '#include *<ros/ros.h>' "$f" || ! grep -q 'int *main' "$f"; then
badcpp="$badcpp $f"
fi
done
if [ -z "$badcpp" ]; then
pass "waypoints-cpp-structure" "every C++ source includes <ros/ros.h> and defines main():$cppfiles"
else
fail "waypoints-cpp-structure" "C++ source without the obvious ROS structure:$badcpp"
fi
else
fail "waypoints-node-source" "$wp has no Python file and no C++ source"
fi
fi
# 8f. the reconstruction must declare itself and name the sha it replaces
if [ -f "$wp/README.md" ]; then
if grep -qi 'reconstruct' "$wp/README.md"; then
pass "waypoints-declared" "$wp/README.md calls the package a reconstruction"
else
fail "waypoints-declared" "$wp/README.md does not call the package a reconstruction"
fi
sha=115553cfa8c2ace122414ac5a9b235cd2e225693
if grep -q "$sha" "$wp/README.md" && grep -q "$sha" "$wp/package.xml"; then
pass "waypoints-declares-lost-sha" "the lost gitlink commit $sha is named in $wp/README.md and $wp/package.xml"
else
fail "waypoints-declares-lost-sha" "the lost gitlink commit $sha is not named in both $wp/README.md and $wp/package.xml"
fi
else
fail "waypoints-declared" "$wp has no README.md declaring the package a reconstruction"
fi
if grep -q 'src/waypoints/README.md' README.md 2>/dev/null; then
pass "waypoints-repo-readme" "the repository README points at src/waypoints/README.md"
else
fail "waypoints-repo-readme" "the repository README does not point at src/waypoints/README.md"
fi
# 8g. and git itself must no longer complain about a gitlink with no mapping:
# this is the check that the empty-directory-in-a-clean-clone problem is gone
if git submodule status >/dev/null 2>&1; then
pass "submodule-status-clean" "'git submodule status' succeeds: no gitlink in the index lacks a .gitmodules mapping"
else
fail "submodule-status-clean" "'git submodule status' still fails: $(git submodule status 2>&1 | tr '\n' ' ' | tr -s ' ')"
fi
echo
if [ "$failed" -eq 0 ]; then
echo "ALL CHECKS PASSED"
exit 0
fi
echo "SOME CHECKS FAILED"
exit 1