Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use imu standalone nodes #165

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion panther_bringup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ The package containing default configuration and launch files necessary to start
## Default nodes launched

- `battery_node` - node responsible for monitoring and publishing internal battery state of the Husarion Panther robot. For more information refer to: [panther_battery](../panther_battery/README.md).
- `imu_manager` - nodelet managing Phidget Spatial IMU sensor.
- `imu_filter_node` - node responsible for filtering and fusing raw data from IMU.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be two nodes. One for phidgets_spatial_node and one for imu_filter_node

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phidgets_spatial_node is described later in the list to keep alphabetical order

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. My bad

- `lights_driver_node` - node responsible for displaying frames on the Husarion Panther robot LED panels. For more information refer to: [panther_lights](../panther_lights/README.md).
- `lights_controller_node` - node responsible for processing animations and publishing frames to be displayed on the Husarion Panther robot LED panels. For more information refer to: [panther_lights](../panther_lights/README.md).
- `manager_bt_node` - node responsible for managing the Husarion Panther robot. Designs a system handling LED panels, safety features and software shutdown of components. For more information refer to: [panther_manager](../panther_manager/README.md).
- `panther_driver` - node responsible for communication with motor controllers and computing inverse and forward kinematics of a robot. For more information refer to: [panther_driver](../panther_driver/README.md).
- `phidgets_spatial_node` - Phidget Spatial IMU ROS driver.
- `power_control` - node responsible for power management of the Husarion Panther robot. For more information refer to: [panther_power_control](../panther_power_control/README.md).
- `robot_state_publisher` - node publishing description of the Husarion Panther robot. For more information refer to: [panther_description](../panther_description/README.md).

Expand Down
4 changes: 2 additions & 2 deletions panther_bringup/config/imu_config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ImuFilterNodelet:
imu_filter_node:
gain: 0.1
zeta: 0.0
mag_bias_x: 0.0
Expand All @@ -12,7 +12,7 @@ ImuFilterNodelet:
stateless: false
remove_gravity_vector: false

PhidgetsSpatialNodelet:
phidgets_spatial_node:
data_interval_ms: 8 # supported data rates: 4 8 16 24 32 40 ... 1000 (in ms)
publish_rate: 100.0 # optional param publish_rate, defaults to 0
# serial: 123456 # optional param serial, default is -1
Expand Down
10 changes: 3 additions & 7 deletions panther_bringup/launch/imu.launch
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@
<!-- Load IMU parameters -->
<rosparam command="load" file="$(arg imu_config_file)" />

<!-- Nodelet manager -->
<node pkg="nodelet" type="nodelet" name="imu_manager" output="screen" args="manager" launch-prefix="bash -c 'sleep 15; $0 $@' " />

<!-- Spatial Driver -->
<node pkg="nodelet" type="nodelet" name="PhidgetsSpatialNodelet" output="screen"
args="load phidgets_spatial/PhidgetsSpatialNodelet imu_manager" />
<node pkg="nodelet" type="nodelet" name="phidgets_spatial_node" output="screen"
args="standalone phidgets_spatial/PhidgetsSpatialNodelet" />

<!-- IMU Orientation Filter -->
<node pkg="nodelet" type="nodelet" name="ImuFilterNodelet" output="screen"
args="load imu_filter_madgwick/ImuFilterNodelet imu_manager" />
<node pkg="imu_filter_madgwick" type="imu_filter_node" name="imu_filter_node" output="screen" />

</launch>
Loading