Skip to content

Commit

Permalink
Switch to CamelCase for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
njacquemin1993 committed Jan 10, 2024
1 parent bda9ee5 commit 863eaa5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/vrpn_mocap/tracker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Tracker : public rclcpp::Node
return pubs->at(sensor_idx);
}

builtin_interfaces::msg::Time get_timestamp(struct timeval vrpn_timestamp);
builtin_interfaces::msg::Time GetTimestamp(struct timeval vrpn_timestamp);

static void VRPN_CALLBACK HandlePose(void * tracker, const vrpn_TRACKERCB tracker_pose);
static void VRPN_CALLBACK HandleTwist(void * tracker, const vrpn_TRACKERVELCB tracker_vel);
Expand Down
8 changes: 4 additions & 4 deletions src/tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void Tracker::Init()

void Tracker::MainLoop() {vrpn_tracker_.mainloop();}

builtin_interfaces::msg::Time Tracker::get_timestamp(struct timeval vrpn_timestamp) {
builtin_interfaces::msg::Time Tracker::GetTimestamp(struct timeval vrpn_timestamp) {
if (this->use_vrpn_timestamps_) {
builtin_interfaces::msg::Time stamp;
stamp.sec = vrpn_timestamp.tv_sec;
Expand All @@ -120,7 +120,7 @@ void VRPN_CALLBACK Tracker::HandlePose(void * data, const vrpn_TRACKERCB tracker
// populate message
PoseStamped msg;
msg.header.frame_id = tracker->frame_id_;
msg.header.stamp = tracker->get_timestamp(tracker_pose.msg_time);
msg.header.stamp = tracker->GetTimestamp(tracker_pose.msg_time);

msg.pose.position.x = tracker_pose.pos[0];
msg.pose.position.y = tracker_pose.pos[1];
Expand All @@ -145,7 +145,7 @@ void VRPN_CALLBACK Tracker::HandleTwist(void * data, const vrpn_TRACKERVELCB tra
// populate message
TwistStamped msg;
msg.header.frame_id = tracker->frame_id_;
msg.header.stamp = tracker->get_timestamp(tracker_twist.msg_time);
msg.header.stamp = tracker->GetTimestamp(tracker_twist.msg_time);

msg.twist.linear.x = tracker_twist.vel[0];
msg.twist.linear.y = tracker_twist.vel[1];
Expand Down Expand Up @@ -174,7 +174,7 @@ void VRPN_CALLBACK Tracker::HandleAccel(void * data, const vrpn_TRACKERACCCB tra
// populate message
AccelStamped msg;
msg.header.frame_id = tracker->frame_id_;
msg.header.stamp = tracker->get_timestamp(tracker_accel.msg_time);
msg.header.stamp = tracker->GetTimestamp(tracker_accel.msg_time);

msg.accel.linear.x = tracker_accel.acc[0];
msg.accel.linear.y = tracker_accel.acc[1];
Expand Down

0 comments on commit 863eaa5

Please sign in to comment.