Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean imarker_simple.cpp #262

Open
wants to merge 1 commit into
base: ros2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/imarker_simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ IMarkerSimple::IMarkerSimple(
imarker_topic, node_base_interface_, clock_interface_, logging_interface_, topics_interface_,
services_interface_, update_pub_qos, feedback_sub_qos);

// ros::Duration(2.0).sleep();

// Create imarker
make6DofMarker(latest_pose_, scale, parent_frame);

Expand Down Expand Up @@ -130,8 +128,6 @@ void IMarkerSimple::make6DofMarker(const geometry_msgs::msg::Pose& pose, double

int_marker_.name = IMARKER_NAME;

// int_marker_.controls[0].interaction_mode = InteractiveMarkerControl::MENU;

InteractiveMarkerControl control;
control.orientation.w = 0.7071;
control.orientation.x = 0.7071;
Expand All @@ -144,19 +140,16 @@ void IMarkerSimple::make6DofMarker(const geometry_msgs::msg::Pose& pose, double
control.interaction_mode = InteractiveMarkerControl::MOVE_AXIS;
int_marker_.controls.push_back(control);

control.orientation.w = 0.7071;
control.orientation.x = 0;
control.orientation.y = 0.7071;
control.orientation.z = 0;

control.name = "rotate_z";
control.interaction_mode = InteractiveMarkerControl::ROTATE_AXIS;
int_marker_.controls.push_back(control);
control.name = "move_z";
control.interaction_mode = InteractiveMarkerControl::MOVE_AXIS;
int_marker_.controls.push_back(control);

control.orientation.w = 0.7071;
control.orientation.x = 0;
control.orientation.y = 0;
control.orientation.z = 0.7071;
control.name = "rotate_y";
Expand Down
Loading