This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def icp(a, b, | |
max_time = 1 | |
): | |
import cv2 | |
import numpy | |
import copy | |
import pylab | |
import time | |
import sys | |
import sklearn.neighbors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
#include <tf2_geometry_msgs/tf2_geometry_msgs.h> | |
int main() | |
{ | |
.... | |
tf2::Quaternion quat_tf; | |
geometry_msgs::msg::Quaternion quat_msg = pose.pose.orientation; | |
tf2::fromMsg(quat_msg, quat_tf); |