2 Commits

Autor SHA1 Mensagem Data
Mani Monajjemi f4c476721e Merge branch 'master' into autolab 2014-01-26 13:39:38 -08:00
Mani Monajjemi ce074f5f61 Front camera rotation param added. Experimental. 2013-04-05 17:54:34 -07:00
2 arquivos alterados com 4 adições e 1 exclusões
+3 -1
Ver Arquivo
@@ -44,6 +44,8 @@ ARDroneDriver::ARDroneDriver()
droneFrameIMU = droneFrameId + "_imu";
droneFrameFrontCam = droneFrameId + "_frontcam";
droneFrameBottomCam = droneFrameId + "_bottomcam";
frontCamRotation = (ros::param::get("~front_cam_rotation", frontCamRotation)) ? frontCamRotation : 0.0;
ROS_INFO("Front Camera Rotation: %4.2lf", frontCamRotation);
drone_root_frame = (ros::param::get("~root_frame", drone_root_frame)) ? drone_root_frame : ROOT_FRAME_BASE;
drone_root_frame = drone_root_frame % ROOT_FRAME_NUM;
@@ -81,7 +83,7 @@ ARDroneDriver::ARDroneDriver()
// TODO: Precise values for Drone1 & Drone2
tf_base_front = tf::StampedTransform(
tf::Transform(
tf::createQuaternionFromRPY(-90.0 * _DEG2RAD, 0.0, -90.0 * _DEG2RAD),
tf::createQuaternionFromRPY(-90.0 * _DEG2RAD, 0.0, -90.0 * _DEG2RAD) * tf::createQuaternionFromRPY(frontCamRotation * _DEG2RAD, 0.0, 0.0),
tf::Vector3(0.21, 0.0, 0.0)),
ros::Time::now(), droneFrameBase, droneFrameFrontCam
);
+1
Ver Arquivo
@@ -114,6 +114,7 @@ private:
bool inited;
std::string droneFrameId;
double frontCamRotation;
// Load auto-generated declarations for full navdata
#define NAVDATA_STRUCTS_HEADER_PRIVATE