Skip to content

Commit

Permalink
fixed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
angrycompany16 committed Nov 12, 2023
1 parent 4c0aecc commit b1620a4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 0 additions & 2 deletions sensors/bms/bms/freya_bms.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import subprocess
import rclpy.logging

#TODO: use ros2 logging instead of python print

class BMS:
""" Class containing Freya's BMS system.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion sensors/bms/launch/bms_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ def generate_launch_description():
return LaunchDescription([
Node(
package='bms',
executable='bms_publisher'
executable='freya_bms_publisher_node'
)
])
8 changes: 4 additions & 4 deletions sensors/bms/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>bms</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="karate.martynas1@gmail.com">vortex</maintainer>
<license>TODO: License declaration</license>
<version>1.0.0</version>
<description>Logs information about Freya's battery packs</description>
<maintainer email="dpersson16@gmail.com">vortex</maintainer>
<license>TODO</license>

<test_depend>ament_copyright</test_depend>
<test_depend>ament_flake8</test_depend>
Expand Down
7 changes: 5 additions & 2 deletions sensors/bms/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This package contains a script for collecting BMS
data, as well as a ROS node for publishing that
data.
data. The system is documented at [wiki page](https://vortex.a2hosted.com/index.php/Freya_BMS).

## ROS2

Expand Down Expand Up @@ -84,7 +84,10 @@ create_key_value_pair(key: str, value) -> KeyValue:

## Startup service

This package also contains a .service script for running the node on startup. To enable this, just run (from this directory)
Note: The .service file may need to be edited in order to source the setup.bash file
from the correct workspace.

This package also contains a .service file for running the node on startup. To enable this, just run (from this directory)
```
sudo cp startup_script/bms_startup.service /etc/systemd/system/bms_startup.service
```
Expand Down
2 changes: 1 addition & 1 deletion sensors/bms/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
tests_require=['pytest'],
entry_points={
'console_scripts': [
'bms_publisher = bms.freya_bms_node:main'
'freya_bms_publisher_node = bms.freya_bms_publisher_node:main'
],
},
)

0 comments on commit b1620a4

Please sign in to comment.