Skip to content

Commit

Permalink
version icuas
Browse files Browse the repository at this point in the history
  • Loading branch information
jcobano committed Jun 24, 2024
1 parent 060d90a commit 651b06f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include/Grid3D/grid3d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ bool loadSemanticGrid() {
// percent_computed_pub_.publish(percent_msg);
}
if(m_kdtree.nearestKSearch(searchPoint, 1, pointIdxNKNSearch, pointNKNSquaredDistance) > 0)
{
{
// JAC: Always square distance has been considered!!!!!!
// dist = pointNKNSquaredDistance[0];
dist = sqrt(pointNKNSquaredDistance[0]);
Expand Down
2 changes: 1 addition & 1 deletion include/Planners/LazyThetaStarSemantic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace Planners

// Variable to ensure that the los is true between the parent of the current and one neighbour, so SetVertex function should not be executed
bool los_neighbour_{false}; /*!< TODO Comment */
int coef=10;
int coef=3;


};
Expand Down
2 changes: 1 addition & 1 deletion include/Planners/LazyThetaStarSemanticCost.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace Planners

// Variable to ensure that the los is true between the parent of the current and one neighbour, so SetVertex function should not be executed
bool los_neighbour_{false}; /*!< TODO Comment */
int coef=10;
int coef=3;


};
Expand Down
10 changes: 6 additions & 4 deletions launch/simulator_atlas.launch
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<launch>

<!-- Start Gazebo with wg world running in (max) realtime -->
<include file="$(find hector_gazebo_worlds)/launch/mesh.launch"/>
<!-- <include file="$(find hector_gazebo_worlds)/launch/mesh.launch"/> -->

<!-- Spawn simulated quadrotor uav -->
<include file="$(find hector_quadrotor_gazebo)/launch/spawn_quadrotor.launch" >
<!-- <include file="$(find hector_quadrotor_gazebo)/launch/spawn_quadrotor.launch" >
<arg name="model" value="$(find hector_quadrotor_description)/urdf/quadrotor_hokuyo_utm30lx.gazebo.xacro"/>
</include>
</include> -->

<!-- <node pkg="tf" type="static_transform_publisher" name="map_world" args="32 32 0 -3.1416 0 0 map world 100" /> -->
<!-- <node pkg="tf" type="static_transform_publisher" name="map_world" args="181.5 -10.0 0 0 0 0 map world 100" /> -->
Expand All @@ -22,9 +22,11 @@
<!-- <arg name="map_name" default="manufacturing"/> -->
<!-- ATLAS -->
<!-- <arg name="map_name" default="Atlas_8_300"/> -->
<arg name="map_name" default="Atlas_8_puertas_02"/>
<!-- <arg name="map_name" default="nube_de_puntos2"/> -->
<!-- <arg name="map_name" default="nube_de_puntos_con_etiquetas"/> -->

<!-- <arg name="map_name" default="Atlas_8_puertas_02"/> -->
<arg name="map_name" default="nube_atlas_recortado_02"/>
<arg name="map" default="$(find heuristic_planners)/resources/3dmaps/$(arg map_name).bt"/>

<arg name="algorithm_name" default="lazythetastar_semantic_cost"/>
Expand Down
5 changes: 1 addition & 4 deletions scripts/grid3d_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ def __init__(self):
for y in range(min_y, max_y + 1):
for z in range(min_z, max_z + 1):
# print(f'{x},{y},{z},1')
self.semantic_grid_x.append(int(x))
self.semantic_grid_y.append(int(y))
self.semantic_grid_z.append(int(z))
self.semantic_grid_v.append(int(index + 1))




Expand Down

0 comments on commit 651b06f

Please sign in to comment.