71
71
72
72
// Import/export for windows dll's and visibility for gcc shared libraries.
73
73
74
- #ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries
75
- #ifdef rviz_visual_tools_EXPORTS // we are building a shared lib/dll
76
- #define RVIZ_VISUAL_TOOLS_DECL ROS_HELPER_EXPORT
77
- #else // we are using shared lib/dll
78
- #define RVIZ_VISUAL_TOOLS_DECL ROS_HELPER_IMPORT
79
- #endif
80
- #else // ros is being built around static libraries
81
- #define RVIZ_VISUAL_TOOLS_DECL
74
+ #ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries
75
+ #ifdef rviz_visual_tools_EXPORTS // we are building a shared lib/dll
76
+ #define RVIZ_VISUAL_TOOLS_DECL ROS_HELPER_EXPORT
77
+ #else // we are using shared lib/dll
78
+ #define RVIZ_VISUAL_TOOLS_DECL ROS_HELPER_IMPORT
79
+ #endif
80
+ #else // ros is being built around static libraries
81
+ #define RVIZ_VISUAL_TOOLS_DECL
82
82
#endif
83
83
84
84
namespace rviz_visual_tools
@@ -197,7 +197,8 @@ class RvizVisualTools
197
197
* \param marker_topic - rostopic to publish markers to - your Rviz display should match
198
198
* \param nh - optional ros node handle - defaults to "~"
199
199
*/
200
- explicit RvizVisualTools (std::string base_frame, std::string marker_topic = RVIZ_MARKER_TOPIC, ros::NodeHandle nh = ros::NodeHandle(" ~" ));
200
+ explicit RvizVisualTools (std::string base_frame, std::string marker_topic = RVIZ_MARKER_TOPIC,
201
+ ros::NodeHandle nh = ros::NodeHandle(" ~" ));
201
202
/* *
202
203
* \brief Deconstructor
203
204
*/
@@ -426,8 +427,8 @@ class RvizVisualTools
426
427
* \param y_width - Y-size of the visualized plane [meters]
427
428
* \return true on success
428
429
*/
429
- bool publishABCDPlane (const double A, const double B, const double C, const double D,
430
- colors color=TRANSLUCENT, double x_width = 1.0 , double y_width = 1.0 );
430
+ bool publishABCDPlane (const double A, const double B, const double C, const double D, colors color = TRANSLUCENT,
431
+ double x_width = 1.0 , double y_width = 1.0 );
431
432
432
433
/* *
433
434
* \brief Display the XY plane of a given pose
@@ -485,8 +486,8 @@ class RvizVisualTools
485
486
const std::string& ns = " Sphere" , std::size_t id = 0 );
486
487
bool publishSphere (const geometry_msgs::Pose& pose, const std_msgs::ColorRGBA& color,
487
488
const geometry_msgs::Vector3 scale, const std::string& ns = " Sphere" , std::size_t id = 0 );
488
- bool publishSphere (const Eigen::Isometry3d& pose, const std_msgs::ColorRGBA& color, const geometry_msgs::Vector3 scale,
489
- const std::string& ns = " Sphere" , std::size_t id = 0 );
489
+ bool publishSphere (const Eigen::Isometry3d& pose, const std_msgs::ColorRGBA& color,
490
+ const geometry_msgs::Vector3 scale, const std::string& ns = " Sphere" , std::size_t id = 0 );
490
491
bool publishSphere (const Eigen::Vector3d& point, const std_msgs::ColorRGBA& color, const geometry_msgs::Vector3 scale,
491
492
const std::string& ns = " Sphere" , std::size_t id = 0 );
492
493
bool publishSphere (const geometry_msgs::PoseStamped& pose, colors color, const geometry_msgs::Vector3 scale,
@@ -668,10 +669,8 @@ class RvizVisualTools
668
669
const std::string& ns = " Path" );
669
670
bool publishPath (const std::vector<geometry_msgs::Point>& path, colors color, scales scale,
670
671
const std::string& ns = " Path" );
671
- bool publishPath (const EigenSTL::vector_Isometry3d& path, colors color, scales scale,
672
- const std::string& ns = " Path" );
673
- bool publishPath (const EigenSTL::vector_Vector3d& path, colors color, scales scale,
674
- const std::string& ns = " Path" );
672
+ bool publishPath (const EigenSTL::vector_Isometry3d& path, colors color, scales scale, const std::string& ns = " Path" );
673
+ bool publishPath (const EigenSTL::vector_Vector3d& path, colors color, scales scale, const std::string& ns = " Path" );
675
674
bool publishPath (const std::vector<geometry_msgs::Point>& path, colors color = RED, double radius = 0.01 ,
676
675
const std::string& ns = " Path" );
677
676
bool publishPath (const EigenSTL::vector_Vector3d& path, colors color = RED, double radius = 0.01 ,
@@ -861,8 +860,8 @@ class RvizVisualTools
861
860
*/
862
861
bool publishMesh (const Eigen::Isometry3d& pose, const shape_msgs::Mesh& mesh, colors color = CLEAR, double scale = 1 ,
863
862
const std::string& ns = " mesh" , std::size_t id = 0 );
864
- bool publishMesh (const geometry_msgs::Pose& pose, const shape_msgs::Mesh& mesh, colors color = CLEAR, double scale = 1 ,
865
- const std::string& ns = " mesh" , std::size_t id = 0 );
863
+ bool publishMesh (const geometry_msgs::Pose& pose, const shape_msgs::Mesh& mesh, colors color = CLEAR,
864
+ double scale = 1 , const std::string& ns = " mesh" , std::size_t id = 0 );
866
865
867
866
/* *
868
867
* \brief Display a graph
@@ -993,9 +992,9 @@ class RvizVisualTools
993
992
@param convention - default is rviz_visual_tools::XYZ
994
993
*/
995
994
static Eigen::Isometry3d convertFromXYZRPY (double tx, double ty, double tz, double rx, double ry, double rz,
996
- EulerConvention convention); // ZYX is ROS standard
995
+ EulerConvention convention); // ZYX is ROS standard
997
996
static Eigen::Isometry3d convertFromXYZRPY (const std::vector<double >& transform6,
998
- EulerConvention convention); // ZYX is ROS standard
997
+ EulerConvention convention); // ZYX is ROS standard
999
998
1000
999
// TODO(davetcoleman): add opposite conversion that uses Eigen::Vector3d rpy = pose.rotation().eulerAngles(0, 1, 2);
1001
1000
@@ -1006,8 +1005,8 @@ class RvizVisualTools
1006
1005
* \param output vector of size 6 in order xyz rpy
1007
1006
*/
1008
1007
static void convertToXYZRPY (const Eigen::Isometry3d& pose, std::vector<double >& xyzrpy);
1009
- static void convertToXYZRPY (const Eigen::Isometry3d& pose, double & x, double & y, double & z, double & roll, double & pitch,
1010
- double & yaw);
1008
+ static void convertToXYZRPY (const Eigen::Isometry3d& pose, double & x, double & y, double & z, double & roll,
1009
+ double & pitch, double & yaw);
1011
1010
/* *
1012
1011
* \brief Create a random pose within bounds of random_pose_bounds_
1013
1012
* \param Pose to fill in
0 commit comments