-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ethz-msrl/minor_fix
Minor fix
- Loading branch information
Showing
43 changed files
with
1,472 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
desktop/default/navion2_rviz_rotating_fields_joystick.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Type=Application | ||
Terminal=true | ||
TerminalOptions=bash | ||
Exec=bash -c "killall -9 rosmaster; source /opt/ros/noetic/setup.bash;source ~/navion_ws/install/setup.bash;source ~/catkin_ws/devel/setup.bash;roslaunch navion_example navion_rotating_field_joystick.launch" | ||
Name=Navion Fast Rotating Fields with PS5 controller | ||
Comment=Launch Navion software with RViz GUI. | ||
Icon=/home/<username>/.local/share/icons/hicolor/48x48/apps/navion_logo.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
image_width: 400 | ||
image_height: 400 | ||
camera_name: narrow_stereo | ||
camera_matrix: | ||
rows: 3 | ||
cols: 3 | ||
data: [261.24689, 0. , 186.49292, | ||
0. , 260.77928, 195.48004, | ||
0. , 0. , 1. ] | ||
distortion_model: plumb_bob | ||
distortion_coefficients: | ||
rows: 1 | ||
cols: 5 | ||
data: [-0.181739, 0.016756, -0.000477, -0.000213, 0.000000] | ||
rectification_matrix: | ||
rows: 3 | ||
cols: 3 | ||
data: [1., 0., 0., | ||
0., 1., 0., | ||
0., 0., 1.] | ||
projection_matrix: | ||
rows: 3 | ||
cols: 4 | ||
data: [225.43288, 0. , 180.6873 , 0. , | ||
0. , 225.59071, 192.84695, 0. , | ||
0. , 0. , 1. , 0. ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
controller_name: ps_navi | ||
eMNS_name: navion | ||
|
||
joy_node/dev: "/dev/input/psc_5" | ||
|
||
###### CHANGE CONTROLLER MAPPING ############################### | ||
# mapping 0: joystick axis 0 -> rot(X), axis 1 -> rot(Y) # | ||
# mapping 1: joystick axis 0 -> azimuth, axis 1 -> inclination # | ||
# mapping 2: joystick axis 0 -> none, axis 1 -> rot(Y) # | ||
# mapping 3: absolute field mapping x-z plane # | ||
/ps_navi_controller/mapping: 1 #mapping for the rotations # | ||
# # | ||
################################################################ | ||
|
||
/ps_navi_controller/mfControlMode: 1 #control mode for the magnetic field | ||
|
||
/ps_navi_controller/joy_axis_0: 1 | ||
/ps_navi_controller/joy_axis_1: 0 | ||
/ps_navi_controller/joy_axis_l1: 3 | ||
|
||
/ps_navi_controller/button_x: 1 | ||
/ps_navi_controller/button_o: 0 | ||
/ps_navi_controller/button_up: 11 | ||
/ps_navi_controller/button_down: 12 | ||
/ps_navi_controller/button_left: 10 | ||
/ps_navi_controller/button_right: 11 | ||
/ps_navi_controller/button_ps: 6 | ||
/ps_navi_controller/button_l1: 5 | ||
/ps_navi_controller/button_l2: 4 | ||
/ps_navi_controller/button_l3: 7 | ||
|
||
/ps_navi_controller/angleIncrement: 0.040 | ||
/ps_navi_controller/posIncrement: 0.0005 | ||
/ps_navi_controller/mfMagnitude: 0.01 | ||
/ps_navi_controller/maxMfMagnitudeIncrement_: 0.0001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<launch> | ||
|
||
<!-- PS Navi controller --> | ||
<rosparam command="load" file="$(find navion_example)/config/ps_controller_rotating_field.yaml" /> | ||
|
||
<node respawn="true" pkg="joy" type="joy_node" name="joy_node"> | ||
<param name="autorepeat_rate" value="50"/> | ||
</node> | ||
<node pkg="ps_navi_controller" type="ps_navi_controller" name="ps_navi_controller" respawn="false"> | ||
<remap from="/ps_navi_controller/target_mf" to="/navion/desired_field_rot_axis"/> | ||
</node> | ||
|
||
</launch> |
29 changes: 29 additions & 0 deletions
29
navion_example/launch/navion_rotating_field_joystick.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<launch> | ||
|
||
<!-- Navion --> | ||
<arg name="emns_param_path" default="$(find mag_manip)/params/Navion_2.yaml" /> | ||
<arg name="navion_version" default="2_1" /> | ||
<arg name="cal_path" default="$(find mpem)/cal/Navion_2-1_Calibration_25-05-2022.yaml" /> | ||
|
||
<node name="mns_broadcaster" pkg="tf" type="static_transform_publisher" args="0 0 0 0 0 0 1 world mns 100" respawn="true" /> | ||
|
||
<node name="nav_controller" pkg="nav_controller" type="navion2_controller_node" output="screen" respawn="true"> | ||
<rosparam command="load" file="$(find nav_controller)/launch/parameters_fast_fields.yaml" /> | ||
<rosparam command="load" file="$(find nav_controller)/param/navion_$(arg navion_version).yaml" /> | ||
<param name="emns_param" type="string" value="$(find mag_manip)/params/Navion_2.yaml"/> | ||
</node> | ||
|
||
<node name="rviz" pkg="rviz" type='rviz' args="-d $(find navion_example)/rviz/config_navion_rotating.rviz" output="screen" /> | ||
|
||
<node name="rotating_field_node" pkg="nav_utils" type='rotating_field_node.py' output="screen" respawn="true"> | ||
<param name="~calibration_path" type="string" value="$(arg cal_path)" /> | ||
</node> | ||
|
||
<include file="$(find nav_rviz)/launch/navion2_urdf_model.launch"/> | ||
|
||
<!-- PlayStation controller --> | ||
<include file="$(find navion_example)/launch/navion_psc_rotating.launch" pass_all_args="true" /> | ||
|
||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.