ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

Manage Waypoints on Rviz

asked 2012-06-21 06:52:15 -0500

updated 2014-01-28 17:12:46 -0500

ngrennan gravatar image

Hello,

I have a ground-robot (2D) and I want to manage (insert,delete and move) a simple set of waypoints in rviz, that will be used to define the path! (i will subscribe the map of gmapping)

What solution there is available for this? I have see the interactive markers, i don't need a complex solution like this!

Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-06-21 08:25:57 -0500

joq gravatar image

I generally use disk-shaped markers for way-points, like this:

def mark_way_points(self, color):
    """Create slightly transparent disks for way-points.

    :param color: disk RGBA value
    """
    index = 0
    for wp in self.map_points:
        marker = Marker(header = self.map.header,
                        ns = "waypoints_osm",
                        id = index,
                        type = Marker.CYLINDER,
                        action = Marker.ADD,
                        scale = Vector3(x=2., y=2., z=0.2),
                        color = color,
                        lifetime = self.marker_life)
        index += 1
        # use easting and northing coordinates (ignoring altitude)
        marker.pose.position = wp.toPointXY()
        marker.pose.orientation = Quaternion(x=0., y=0., z=0., w=1.)
        self.msg.markers.append(marker)
edit flag offensive delete link more
1

answered 2012-06-21 08:15:44 -0500

Lorenz gravatar image

updated 2012-06-21 08:16:11 -0500

Have a look at the parsec repository at http://parsec.googlecode.com. In particular the packages interactive_waypoint_markers and navigation_waypoints_server should be interesting for you. In the repository, you can also find example launch files, e.g. here.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2012-06-21 06:52:15 -0500

Seen: 2,506 times

Last updated: Jun 21 '12