File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 3939 Controller to use the tool contact functionality of the robot.
4040 </description >
4141 </class >
42+ <class name =" ur_controllers/GravityUpdateController" type =" ur_controllers::GravityUpdateController" base_class_type =" controller_interface::ControllerInterface" >
43+ <description >
44+ Controller to set the gravity direction of the robot.
45+ </description >
46+ </class >
4247</library >
Original file line number Diff line number Diff line change @@ -99,12 +99,6 @@ controller_interface::InterfaceConfiguration GPIOController::command_interface_c
9999
100100 config.names .emplace_back (tf_prefix + " gpio/analog_output_domain_cmd" );
101101
102- // Gravity stuff
103- config.names .emplace_back (tf_prefix + " gravity/x" );
104- config.names .emplace_back (tf_prefix + " gravity/y" );
105- config.names .emplace_back (tf_prefix + " gravity/z" );
106- config.names .emplace_back (tf_prefix + " gravity/gravity_async_success" );
107-
108102 return config;
109103}
110104
Original file line number Diff line number Diff line change @@ -287,10 +287,10 @@ ur_controllers::GravityUpdateController::on_configure(const rclcpp_lifecycle::St
287287controller_interface::CallbackReturn
288288ur_controllers::GravityUpdateController::on_activate (const rclcpp_lifecycle::State& /* previous_state*/ )
289289{
290- while (state_interfaces_[StateInterfaces::INITIALIZED_FLAG].get_optional ().value_or (0.0 ) == 0.0 ) {
291- RCLCPP_INFO (get_node ()->get_logger (), " Waiting for system interface to initialize..." );
292- std::this_thread::sleep_for (std::chrono::milliseconds (50 ));
293- }
290+ // while (state_interfaces_[StateInterfaces::INITIALIZED_FLAG].get_optional().value_or(0.0) == 0.0) {
291+ // RCLCPP_INFO(get_node()->get_logger(), "Waiting for system interface to initialize...");
292+ // std::this_thread::sleep_for(std::chrono::milliseconds(50));
293+ // }
294294
295295 try {
296296 auto qos_latched = rclcpp::SystemDefaultsQoS ();
You can’t perform that action at this time.
0 commit comments