Skip to content

Commit b8f23ed

Browse files
authored
updated package.xml in rosbot_utils (#94)
* updated package.xml in rosbot_utils * Added comment for flash script Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Updated worldlist Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * removed gz tests Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * updated setup.py Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Added firmware version Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Update flash_firmware.py --------- Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
1 parent eea210b commit b8f23ed

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

.wordlist.txt

+1
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,5 @@ stm
148148
ttyUSB
149149
subprocess
150150
cbus
151+
Dockerfile
151152
unbuffered

rosbot_utils/package.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
<package format="3">
44
<name>rosbot_utils</name>
55
<version>0.13.0</version>
6-
<description>utilities for ROSbot 2R and 2 PRO</description>
7-
<maintainer email="dominik.nwk@gmail.com">Dominik Nowak</maintainer>
6+
<description>Utilities for ROSbot 2R and 2 PRO</description>
87
<license>Apache License 2.0</license>
98

9+
<author email="dominik.nwk@gmail.com">Dominik Nowak</author>
10+
<maintainer email="support@husarion.com">Husarion</maintainer>
11+
1012
<url type="website">https://husarion.com/</url>
1113
<url type="repository">https://github.com/husarion/rosbot_ros</url>
1214
<url type="bugtracker">https://github.com/husarion/rosbot_ros/issues</url>

rosbot_utils/rosbot_utils/flash-firmware.py

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
18+
# This file is deprecated but stays here for backward compatibility look here:
19+
# https://github.com/husarion/rosbot-docker/blob/ros2/Dockerfile.hardware#L82
20+
1721
import sh
1822
import time
1923
import sys

rosbot_utils/rosbot_utils/flash_firmware.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
# Global variable to hold the subprocess reference
2727
subproc = None
2828

29+
firmware_version = "0.11.0"
30+
2931

3032
def signal_handler(sig, frame):
3133
global subproc
@@ -53,14 +55,14 @@ def find_firmware_file():
5355

5456
# Construct the path to the firmware directory
5557
firmware_dir = os.path.join(package_install_directory, "firmware")
56-
firmware_files = glob.glob(os.path.join(firmware_dir, "firmware*.bin"))
58+
firmware_files = glob.glob(os.path.join(firmware_dir, f"firmware-{firmware_version}.bin"))
5759

5860
if not firmware_files:
5961
firmware_url = (
6062
"https://github.com/husarion/rosbot_ros2_firmware/releases/"
61-
"download/0.11.0/firmware.bin"
63+
f"download/{firmware_version}/firmware.bin"
6264
)
63-
firmware_path = os.path.join(firmware_dir, "firmware.bin")
65+
firmware_path = os.path.join(firmware_dir, f"firmware-{firmware_version}.bin")
6466
print("Downloading firmware...")
6567
download_firmware(firmware_url, firmware_path)
6668
return firmware_path

rosbot_utils/setup.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
setup(
2222
name=package_name,
23-
version="0.0.0",
23+
version="0.12.0",
2424
packages=find_packages(exclude=["test"]),
2525
data_files=[
2626
("share/ament_index/resource_index/packages", ["resource/" + package_name]),
@@ -29,10 +29,10 @@
2929
],
3030
install_requires=["setuptools"],
3131
zip_safe=True,
32-
maintainer="dominik",
33-
maintainer_email="dominik.nwk@gmail.com",
34-
description="TODO: Package description",
35-
license="TODO: License declaration",
32+
maintainer="Husarion",
33+
maintainer_email="support@husarion.com",
34+
description="Utilities for ROSbot 2R and 2 PRO",
35+
license="Apache License 2.0",
3636
tests_require=["pytest"],
3737
entry_points={
3838
"console_scripts": ["flash_firmware = rosbot_utils.flash_firmware:main"],

0 commit comments

Comments
 (0)