File tree 5 files changed +19
-10
lines changed
5 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 148
148
ttyUSB
149
149
subprocess
150
150
cbus
151
+ Dockerfile
151
152
unbuffered
Original file line number Diff line number Diff line change 3
3
<package format =" 3" >
4
4
<name >rosbot_utils</name >
5
5
<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 >
8
7
<license >Apache License 2.0</license >
9
8
9
+ <author email =" dominik.nwk@gmail.com" >Dominik Nowak</author >
10
+ <maintainer email =" support@husarion.com" >Husarion</maintainer >
11
+
10
12
<url type =" website" >https://husarion.com/</url >
11
13
<url type =" repository" >https://github.com/husarion/rosbot_ros</url >
12
14
<url type =" bugtracker" >https://github.com/husarion/rosbot_ros/issues</url >
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
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
+
17
21
import sh
18
22
import time
19
23
import sys
Original file line number Diff line number Diff line change 26
26
# Global variable to hold the subprocess reference
27
27
subproc = None
28
28
29
+ firmware_version = "0.11.0"
30
+
29
31
30
32
def signal_handler (sig , frame ):
31
33
global subproc
@@ -53,14 +55,14 @@ def find_firmware_file():
53
55
54
56
# Construct the path to the firmware directory
55
57
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" ))
57
59
58
60
if not firmware_files :
59
61
firmware_url = (
60
62
"https://github.com/husarion/rosbot_ros2_firmware/releases/"
61
- "download/0.11.0 /firmware.bin"
63
+ f "download/{ firmware_version } /firmware.bin"
62
64
)
63
- firmware_path = os .path .join (firmware_dir , "firmware.bin" )
65
+ firmware_path = os .path .join (firmware_dir , f "firmware- { firmware_version } .bin" )
64
66
print ("Downloading firmware..." )
65
67
download_firmware (firmware_url , firmware_path )
66
68
return firmware_path
Original file line number Diff line number Diff line change 20
20
21
21
setup (
22
22
name = package_name ,
23
- version = "0.0 .0" ,
23
+ version = "0.12 .0" ,
24
24
packages = find_packages (exclude = ["test" ]),
25
25
data_files = [
26
26
("share/ament_index/resource_index/packages" , ["resource/" + package_name ]),
29
29
],
30
30
install_requires = ["setuptools" ],
31
31
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 " ,
36
36
tests_require = ["pytest" ],
37
37
entry_points = {
38
38
"console_scripts" : ["flash_firmware = rosbot_utils.flash_firmware:main" ],
You can’t perform that action at this time.
0 commit comments