mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 00:54:06 +08:00
function rename
This commit is contained in:
parent
9a5ea31784
commit
5b5a4b7386
@ -50,13 +50,13 @@
|
||||
|
||||
PositionEstimator::PositionEstimator() :
|
||||
_n(),
|
||||
_sub_modelstates(_n.subscribe("/gazebo/model_states", 1, &PositionEstimator::model_states_callback, this)),
|
||||
_sub_modelstates(_n.subscribe("/gazebo/model_states", 1, &PositionEstimator::ModelStatesCallback, this)),
|
||||
_vehicle_position_pub(_n.advertise<px4::vehicle_local_position>("vehicle_local_position", 1)),
|
||||
_startup_time(px4::get_time_micros())
|
||||
{
|
||||
}
|
||||
|
||||
void PositionEstimator::model_states_callback(const gazebo_msgs::ModelStatesConstPtr &msg)
|
||||
void PositionEstimator::ModelStatesCallback(const gazebo_msgs::ModelStatesConstPtr &msg)
|
||||
{
|
||||
//XXX: use a proper sensor topic
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ public:
|
||||
~PositionEstimator() {}
|
||||
|
||||
protected:
|
||||
void model_states_callback(const gazebo_msgs::ModelStatesConstPtr &msg);
|
||||
void ModelStatesCallback(const gazebo_msgs::ModelStatesConstPtr &msg);
|
||||
|
||||
ros::NodeHandle _n;
|
||||
ros::Subscriber _sub_modelstates;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user