Skip to content

Commit 6131ee9

Browse files
authored
302 Add gps support to navigation (#323)
* First steps. Signed-off-by: Jelmer de Wolde <[email protected]> * WIP Signed-off-by: Jelmer de Wolde <[email protected]> * Fix local odometry and visualize in Rviz and Vizanti. Signed-off-by: Jelmer de Wolde <[email protected]> * Create 3D world form open street map. Signed-off-by: Jelmer de Wolde <[email protected]> * Add license. Signed-off-by: Jelmer de Wolde <[email protected]> * Add osm2world install script to docker file. Signed-off-by: Jelmer de Wolde <[email protected]> * Remove zip after unpacking. Signed-off-by: Jelmer de Wolde <[email protected]> * Show disk space in post install. Signed-off-by: Jelmer de Wolde <[email protected]> * Check disk space before and after chown. Signed-off-by: Jelmer de Wolde <[email protected]> * Undo changes. Signed-off-by: Jelmer de Wolde <[email protected]> * Load 3D world based on map. Signed-off-by: Jelmer de Wolde <[email protected]> * Restructure sdf files. Signed-off-by: Jelmer de Wolde <[email protected]> * Use dynamic namespaces. Signed-off-by: Jelmer de Wolde <[email protected]> * Us logger instead of printing. Signed-off-by: Jelmer de Wolde <[email protected]> * Fix test. Signed-off-by: Jelmer de Wolde <[email protected]> * Change osm2world properties to not add road marking materials since this results in height differences. Signed-off-by: Jelmer de Wolde <[email protected]> * Only remap gps topic when using gps. Signed-off-by: Jelmer de Wolde <[email protected]> * Skip joy gripper tests. Signed-off-by: Jelmer de Wolde <[email protected]> --------- Signed-off-by: Jelmer de Wolde <[email protected]>
1 parent ffa4b6f commit 6131ee9

File tree

27 files changed

+1083
-147
lines changed

27 files changed

+1083
-147
lines changed

dockerfiles/install_scripts/dev_packages.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ apt install -y \
1414
xvfb \
1515
ros-$ROS_DISTRO-nmea-navsat-driver \
1616
ros-$ROS_DISTRO-moveit-ros-perception \
17-
ros-$ROS_DISTRO-topic-tools
17+
ros-$ROS_DISTRO-topic-tools \
18+
ros-$ROS_DISTRO-rviz-satellite
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash -i
2+
3+
# SPDX-FileCopyrightText: Alliander N. V.
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
set -e
8+
source /home/$UNAME/.bashrc
9+
apt update
10+
11+
mkdir -p /home/$UNAME/osm2world
12+
cd /home/$UNAME/osm2world
13+
wget https://osm2world.org/download/files/latest/OSM2World-latest-bin.zip
14+
unzip OSM2World-latest-bin.zip
15+
rm OSM2World-latest-bin.zip

dockerfiles/rcdt_robotics.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ RUN ./vizanti.sh
4141
COPY ./install_scripts/franka_lock_unlock.sh .
4242
RUN ./franka_lock_unlock.sh
4343

44+
COPY ./install_scripts/osm2world.sh .
45+
RUN ./osm2world.sh
46+
4447
COPY ./install_scripts/dev_packages.sh .
4548
RUN ./dev_packages.sh
4649

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ dependencies = [
2828
"pillow>=11.3.0",
2929
"pre-commit>=4.2.0",
3030
"psutil>=7.0.0",
31+
"pydantic>=2.11.10",
3132
"pydoclint>=0.6.6",
3233
"pymongo>=4.14.1",
34+
"pyproj>=3.7.2",
3335
"pyrealsense2>=2.56.5.9235",
3436
"pytest<8.4.0",
3537
"pytest-timeout>=2.4.0",

ros2_ws/src/rcdt_gazebo/config/controllers.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
# Based on: https://github.com/husarion/panther_ros/blob/ros2/panther_controller/config/WH01_controller.yaml
5+
# Based on:
6+
# https://github.com/husarion/husarion_ugv_ros/blob/ros2/husarion_ugv_controller/config/WH01_controller.yaml
7+
# https://github.com/frankarobotics/franka_ros2/blob/humble/franka_fr3_moveit_config/config/fr3_ros_controllers.yaml
68

79
/**:
810
controller_manager:
@@ -21,6 +23,9 @@
2123
drive_controller:
2224
type: diff_drive_controller/DiffDriveController
2325

26+
imu_broadcaster:
27+
type: imu_sensor_broadcaster/IMUSensorBroadcaster
28+
2429
fr3_arm_controller:
2530
ros__parameters:
2631
allow_nonzero_velocity_at_trajectory_end: true
@@ -48,6 +53,21 @@
4853
stall_timeout: 1.0
4954
stall_velocity_threshold: 0.001
5055

56+
# IMU specification: https://www.phidgets.com/?tier=3&catid=10&pcid=8&prodid=1025#Tab_Specifications
57+
imu_broadcaster:
58+
ros__parameters:
59+
sensor_name: substitute_me
60+
frame_id: substitute_me
61+
# orientation_stddev: 4.3e-2 rad determined experimentally
62+
static_covariance_orientation:
63+
[1.8e-3, 0.0, 0.0, 0.0, 1.8e-3, 0.0, 0.0, 0.0, 1.8e-3]
64+
# angular_velocity_stdev: 0.59 deg/s (0.01 rad/s) gyroscope white noise sigma, according to the manual
65+
static_covariance_angular_velocity:
66+
[1.0e-4, 0.0, 0.0, 0.0, 1.0e-4, 0.0, 0.0, 0.0, 1.0e-4]
67+
# linear_acceleration_stdev: 2.8 mg (0.0275 m/s^2) accelerometer white noise sigma, according to the manual
68+
static_covariance_linear_acceleration:
69+
[7.6e-4, 0.0, 0.0, 0.0, 7.6e-4, 0.0, 0.0, 0.0, 7.6e-4]
70+
5171
drive_controller:
5272
ros__parameters:
5373
left_wheel_names: [fl_wheel_joint, rl_wheel_joint]

0 commit comments

Comments
 (0)