@@ -80,6 +80,9 @@ void RosSceneHypothesisAssessor::setNodeHandle(const ros::NodeHandle &nh)
80
80
nh.param (" small_obj_g_comp" ,GRAVITY_SCALE_COMPENSATION,3 );
81
81
nh.param (" sim_freq_multiplier" ,SIMULATION_FREQUENCY_MULTIPLIER,1 .);
82
82
83
+ std::cerr << " Debug mode: " << debug_mode << std::endl;
84
+ this ->setDebugMode (debug_mode);
85
+
83
86
// physics engine solver settings: check http://bulletphysics.org/mediawiki-1.5.8/index.php/BtContactSolverInfo
84
87
int num_iterations;
85
88
bool split_impulse, randomize_order;
@@ -91,6 +94,8 @@ void RosSceneHypothesisAssessor::setNodeHandle(const ros::NodeHandle &nh)
91
94
this ->physics_engine_ .setPhysicsSolverSetting (num_iterations, randomize_order,
92
95
int (split_impulse), impulse_penetration_threshold);
93
96
97
+ this ->physics_engine_ .setGravityFromBackgroundNormal (background_normal_as_gravity_);
98
+
94
99
SCALED_GRAVITY_MAGNITUDE = SCALING * GRAVITY_MAGNITUDE / GRAVITY_SCALE_COMPENSATION;
95
100
96
101
if (load_table){
@@ -106,9 +111,6 @@ void RosSceneHypothesisAssessor::setNodeHandle(const ros::NodeHandle &nh)
106
111
std::cerr << " Failed to load the background points\n " ;
107
112
}
108
113
109
- std::cerr << " Debug mode: " << debug_mode << std::endl;
110
- this ->setDebugMode (debug_mode);
111
-
112
114
this ->obj_database_ .setObjectFolderLocation (object_folder_location);
113
115
if (this ->fillObjectPropertyDatabase ()) this ->obj_database_ .loadDatabase (this ->physical_properties_database_ );
114
116
this ->physics_engine_ .setObjectPenaltyDatabase (this ->obj_database_ .getObjectPenaltyDatabase ());
0 commit comments