Skip to content

Commit 888fe1c

Browse files
committed
Remove color as input for newFrame function
1 parent b9620f3 commit 888fe1c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

include/ros_viz_tools/ros_viz_tools.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class RosVizTools {
9797
const geometry_msgs::Pose &pose,
9898
const std::string &ns,
9999
const int32_t &id,
100-
const std_msgs::ColorRGBA &color,
101100
const std::string &frame_id);
102101

103102
static geometry_msgs::Pose defaultPose();

src/demo_node.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ int main( int argc, char** argv )
3232
pose.position.y = 1.0;
3333
pose.position.z = -1.0;
3434
pose.orientation = tf2::toMsg(tf2::Quaternion(0 * M_PI / 180, 45 * M_PI / 180, 45 * M_PI / 180));
35-
marker_frame1 = RosVizTools::newFrame(0.1, 2.0, pose, ns, 0, ros_viz_tools::BLUE, frame_id);
35+
marker_frame1 = RosVizTools::newFrame(0.1, 2.0, pose, ns, 0, frame_id);
3636
pose.position.x = -5.0;
3737
pose.position.y = 2.0;
3838
pose.position.z = -3.0;
3939
pose.orientation = tf2::toMsg(tf2::Quaternion(30 * M_PI / 180, 30 * M_PI / 180, 30 * M_PI / 180));
40-
marker_frame2 = RosVizTools::newFrame(0.1, 1.0, pose, ns, 1, ros_viz_tools::GREEN, frame_id);
40+
marker_frame2 = RosVizTools::newFrame(0.1, 1.0, pose, ns, 1, frame_id);
4141
markers.append(marker_frame1);
4242
markers.append(marker_frame2);
4343

src/ros_viz_tools.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,10 @@ Marker RosVizTools::newFrame(const double &width,
151151
const geometry_msgs::Pose &pose,
152152
const std::string &ns,
153153
const int32_t &id,
154-
const std_msgs::ColorRGBA &color,
155154
const std::string &frame_id) {
156155

157156
// line list marker
158-
Marker frame = newLineList(width, ns, id, color, frame_id);
157+
Marker frame = newLineList(width, ns, id, ros_viz_tools::WHITE, frame_id);
159158

160159
// transform matrix - world origin to frame origin
161160
tf2::Transform trans_world_ori;

0 commit comments

Comments
 (0)