Skip to content

Commit

Permalink
Merge pull request ros-visualization#30 from rhaschke/indigo-devel
Browse files Browse the repository at this point in the history
fix frame names in cpp tutorials too
  • Loading branch information
wjwwood committed Sep 15, 2015
2 parents c96e66f + 25a87bc commit 80b1e35
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion interactive_marker_tutorials/src/cube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void makeCube( )
for ( double z=0.0; z<1.0; z+=step )
{
InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";
int_marker.scale = step;

int_marker.pose.position.x = x;
Expand Down
2 changes: 1 addition & 1 deletion interactive_marker_tutorials/src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ InteractiveMarkerControl& makeBoxControl( InteractiveMarker &msg )
InteractiveMarker makeEmptyMarker( bool dummyBox=true )
{
InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";
int_marker.pose.position.y = -3.0 * marker_pos++;;
int_marker.scale = 1;

Expand Down
2 changes: 1 addition & 1 deletion interactive_marker_tutorials/src/point_cloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ vm::InteractiveMarker makeMarker( std::string name, std::string description, int
{
// create an interactive marker for our server
vm::InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";
int_marker.name = name;
int_marker.description = description;

Expand Down
8 changes: 4 additions & 4 deletions interactive_marker_tutorials/src/pong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class PongGame
void updateScore()
{
InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";
int_marker.name = "score";

InteractiveMarkerControl control;
Expand Down Expand Up @@ -310,7 +310,7 @@ class PongGame
void makeFieldMarker()
{
InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";
int_marker.name = "field";

InteractiveMarkerControl control;
Expand Down Expand Up @@ -355,7 +355,7 @@ class PongGame
void makePaddleMarkers()
{
InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";

// Add a control for moving the paddle
InteractiveMarkerControl control;
Expand Down Expand Up @@ -433,7 +433,7 @@ class PongGame
void makeBallMarker()
{
InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";

InteractiveMarkerControl control;
control.always_visible = true;
Expand Down
6 changes: 3 additions & 3 deletions interactive_marker_tutorials/src/selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class PointCouldSelector
void updateBox( )
{
vm::InteractiveMarker msg;
msg.header.frame_id = "/base_link";
msg.header.frame_id = "base_link";

vm::InteractiveMarkerControl control;
control.always_visible = false;
Expand All @@ -127,7 +127,7 @@ class PointCouldSelector
{
// create an interactive marker for our server
vm::InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";
int_marker.name = name;

// create a point cloud marker
Expand Down Expand Up @@ -201,7 +201,7 @@ class PointCouldSelector
for ( int sign=-1; sign<=1; sign+=2 )
{
vm::InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";
int_marker.scale = 1.0;

vm::InteractiveMarkerControl control;
Expand Down
2 changes: 1 addition & 1 deletion interactive_marker_tutorials/src/simple_marker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main(int argc, char** argv)

// create an interactive marker for our server
visualization_msgs::InteractiveMarker int_marker;
int_marker.header.frame_id = "/base_link";
int_marker.header.frame_id = "base_link";
int_marker.header.stamp=ros::Time::now();
int_marker.name = "my_marker";
int_marker.description = "Simple 1-DOF Control";
Expand Down

0 comments on commit 80b1e35

Please sign in to comment.