File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
bitbots_motion/bitbots_quintic_walk Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -107,24 +107,24 @@ def set_parameters(self, param_dict):
107107 for parameter in parameters :
108108 self .py_walk_wrapper .set_parameter (serialize_message (parameter ))
109109
110- def get_phase (self ):
110+ def get_phase (self ) -> float :
111111 return self .py_walk_wrapper .get_phase ()
112112
113- def get_freq (self ):
113+ def get_freq (self ) -> float :
114114 return self .py_walk_wrapper .get_freq ()
115115
116- def get_support_state (self ):
116+ def get_support_state (self ) -> Phase :
117117 return deserialize_message (self .py_walk_wrapper .get_support_state (), Phase )
118118
119- def is_left_support (self ):
119+ def is_left_support (self ) -> bool :
120120 return self .py_walk_wrapper .is_left_support ()
121121
122- def get_odom (self ):
122+ def get_odom (self ) -> Odometry :
123123 odom = self .py_walk_wrapper .get_odom ()
124124 result = deserialize_message (odom , Odometry )
125125 return result
126126
127- def publish_debug (self ):
127+ def publish_debug (self ) -> None :
128128 self .py_walk_wrapper .publish_debug ()
129129
130130 def reset_and_test_if_speed_possible (self , cmd_vel_msg , threshold = 0.001 ):
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ using namespace std::chrono_literals;
1010namespace bitbots_quintic_walk {
1111
1212WalkNode::WalkNode (rclcpp::Node::SharedPtr node, const std::string& ns,
13- std::vector<rclcpp::Parameter> moveit_parameters)
13+ const std::vector<rclcpp::Parameter>& moveit_parameters)
1414 : node_(node),
1515 param_listener_ (node_),
1616 config_(param_listener_.get_params()),
Original file line number Diff line number Diff line change 22
33void PyWalkWrapper::spin_some () { rclcpp::spin_some (node_); }
44
5- PyWalkWrapper::PyWalkWrapper (std::string ns, std::vector<py::bytes> walk_parameter_msgs,
6- std::vector<py::bytes> moveit_parameter_msgs, bool force_smooth_step_transition) {
5+ PyWalkWrapper::PyWalkWrapper (const std::string & ns, const std::vector<py::bytes> & walk_parameter_msgs,
6+ const std::vector<py::bytes> & moveit_parameter_msgs, bool force_smooth_step_transition) {
77 // initialize rclcpp if not already done
88 if (!rclcpp::contexts::get_global_default_context ()->is_valid ()) {
99 rclcpp::init (0 , nullptr );
You can’t perform that action at this time.
0 commit comments