Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Password in doc

See merge request niryo/niryo-one-s/ned_ros_stack!271
  • Loading branch information
Valentin Pitre committed Feb 9, 2022
2 parents 5c928ba + 3d18e8b commit dc3c5f7
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .docker/build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

# Can be changed, choices are: amd64 or arm64
ARCHITECTURE=amd64
VERSION=v4.0.0
VERSION=v4.0.1

DOCKER_IMAGE_NAME=registry.gitlab.com/niryo/niryo-one-s/ned_ros_stack/${VERSION}
## Tag to push image on gitlab
Expand Down
2 changes: 1 addition & 1 deletion .docker/run_docker.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Can be changed, choices are: amd64 or arm64
ARCHITECTURE=amd64
VERSION=v4.0.0
VERSION=v4.0.1

DOCKER_IMAGE_NAME=registry.gitlab.com/niryo/niryo-one-s/ned_ros_stack/${VERSION}

Expand Down
7 changes: 4 additions & 3 deletions niryo_robot_tools_commander/scripts/tool_commander_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,15 @@ def __callback_update_tool(self, _req):
return self.create_response(CommandStatus.TOOL_FAILURE,
"Impossible to set new tool")

if id_ not in self.__available_tools:
if id_ < 0:
id_ = self.__dict_tool_str_to_id['No Tool']
elif id_ not in self.__available_tools:
# no tool found in available tools
return self.create_response(CommandStatus.TOOL_ID_INVALID, "This ID does not match any available tool ID")

self.set_tool(self.__available_tools[id_])

return self.create_response(CommandStatus.SUCCESS,
"New tool has been set, id : {}".format(id_))
return self.create_response(CommandStatus.SUCCESS, "New tool has been set, id : {}".format(id_))

def __callback_equip_electromagnet(self, req):
id_ = req.value
Expand Down
2 changes: 1 addition & 1 deletion sphinx_doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# The short X.Y version
version = u'v4.0'
# The full version, including alpha/beta/rc tags
release = u'v4.0.0'
release = u'v4.0.1'

# -- General configuration ---------------------------------------------------

Expand Down
24 changes: 18 additions & 6 deletions sphinx_doc/locale/en/LC_MESSAGES/source/quick_start.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Ned ROS Documentation v4.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-01 09:26+0000\n"
"POT-Creation-Date: 2022-02-09 10:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -294,9 +294,7 @@ msgid ":red:`Advanced`"
msgstr ""

#: ../../source/quick_start.rst:100
msgid ""
"`Niryo Ros "
"<https://docs.niryo.com/dev/ros/v4.0.0/en/source/stack/overview.html>`_"
msgid "`Niryo Ros <https://docs.niryo.com/dev/ros/source/stack/overview.html>`_"
msgstr ""

#: ../../source/quick_start.rst
Expand Down Expand Up @@ -515,8 +513,8 @@ msgstr ""
msgid ""
"When no program is running you can also start a program by pressing the "
"same button once. To set it up, go to the `Program Autorun "
"<https://docs.niryo.com/product/niryo-"
"studio/v4.0.0/en/source/programs.html#program-autorun>`_."
"<https://docs.niryo.com/product/niryo-studio/en/source/programs.html"
"#program-autorun>`_."
msgstr ""

#~ msgid "There are 6 ways to connect program the Niryo robots:"
Expand Down Expand Up @@ -685,3 +683,17 @@ msgstr ""
#~ "programmed a robot at lightning speed!"
#~ msgstr ""

#~ msgid ""
#~ "`Niryo Ros "
#~ "<https://docs.niryo.com/dev/ros/v4.0.0/en/source/stack/overview.html>`_"
#~ msgstr ""

#~ msgid ""
#~ "When no program is running you can"
#~ " also start a program by pressing "
#~ "the same button once. To set it"
#~ " up, go to the `Program Autorun "
#~ "<https://docs.niryo.com/product/niryo-"
#~ "studio/v4.0.0/en/source/programs.html#program-autorun>`_."
#~ msgstr ""

16 changes: 7 additions & 9 deletions sphinx_doc/locale/fr/LC_MESSAGES/source/quick_start.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Ned ROS Documentation v4.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-01 09:26+0000\n"
"POT-Creation-Date: 2022-02-09 10:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -64,7 +64,7 @@ msgstr ""
"**Description :** Le robot émet son propre réseau Wi-Fi. Dans ce mode, "
"vous pouvez vous connecter au robot comme n'importe quel autre réseau Wi-"
"Fi. |br| Le nom du réseau est au format **NiryoRobot xx-xx-xx** et le mot"
" de passe par défaut est **niryrobot**. Pour changer le nom du robot, "
" de passe par défaut est **niryorobot**. Pour changer le nom du robot, "
"reportez-vous à la section : `Nom du robot "
"<https://docs.niryo.com/product/niryo-studio/source/settings.html#robot-"
"name>`_."
Expand Down Expand Up @@ -344,12 +344,10 @@ msgid ":red:`Advanced`"
msgstr ":red:`Avancé`"

#: ../../source/quick_start.rst:100
msgid ""
"`Niryo Ros "
"<https://docs.niryo.com/dev/ros/v4.0.0/en/source/stack/overview.html>`_"
msgid "`Niryo Ros <https://docs.niryo.com/dev/ros/source/stack/overview.html>`_"
msgstr ""
"`Niryo Ros "
"<https://docs.niryo.com/dev/ros/v4.0.0/en/source/stack/overview.html>`_"
"<https://docs.niryo.com/dev/ros/source/stack/overview.html>`_"

#: ../../source/quick_start.rst
msgid "Program and run your ROS node directly on the robot,"
Expand Down Expand Up @@ -638,12 +636,12 @@ msgstr "Lorsque le programme est en pause, la LED à l'arrière clignote en blan
msgid ""
"When no program is running you can also start a program by pressing the "
"same button once. To set it up, go to the `Program Autorun "
"<https://docs.niryo.com/product/niryo-"
"studio/v4.0.0/en/source/programs.html#program-autorun>`_."
"<https://docs.niryo.com/product/niryo-studio/en/source/programs.html"
"#program-autorun>`_."
msgstr ""
"Lorsqu'aucun programme n'est en cours, vous pouvez également démarrer un "
"programme en appuyant une fois sur le même bouton. Pour le configurer, "
"référez vous à la section `Programme Autorun "
"<https://docs.niryo.com/product/niryo-"
"studio/v4.0.0/en/source/programs.html#program-autorun>`_."
"studio/source/programs.html#program-autorun>`_."

4 changes: 2 additions & 2 deletions sphinx_doc/source/quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ There are 6 ways to program Niryo's robots:
* - ROS
- Python, C++
- :red:`Advanced`
- `Niryo Ros <https://docs.niryo.com/dev/ros/v4.0.0/en/source/stack/overview.html>`_
- `Niryo Ros <https://docs.niryo.com/dev/ros/source/stack/overview.html>`_
- | Program and run your ROS node directly on the robot,
| or remotely through ROS Multimachine.
Expand Down Expand Up @@ -201,7 +201,7 @@ When a program is paused:
When the program is paused, the LED at the back flashes white.

When no program is running you can also start a program by pressing the same button once.
To set it up, go to the `Program Autorun <https://docs.niryo.com/product/niryo-studio/v4.0.0/en/source/programs.html#program-autorun>`_.
To set it up, go to the `Program Autorun <https://docs.niryo.com/product/niryo-studio/en/source/programs.html#program-autorun>`_.


.. |br| raw:: html
Expand Down

0 comments on commit dc3c5f7

Please sign in to comment.