Git Product home page Git Product logo

abstract_map's People

Contributors

btalb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

abstract_map's Issues

The map visualizer has some issues

environment:
pyqtgraph==0.11.1

When ploting pose and abstract map, it raises a exception:
expected a readable buffer object

When I debug more:
"
def _drawPose(self, pose, layer=0, existing=[]):
"""Draws a pose assuming the coordinate frame matches the plot"""
items = existing
print ("here", items)
if not items:
print ("hh", pose.x, pose.y, pose.th)
items.extend([
# items.append(self._plt.plot([pose.x], [pose.y], pen=_PT_PEN))
self._plt.plot([pose.x], [pose.y],
pxMode=False,
pen=None,
symbolSize=_ROBOT_RADIUS,
symbol='o',
symbolPen=_PO_PEN,
symbolBrush=_PO_BRUSH),
# self._plt.plot([pose.x], [pose.y],
# pen=None,
# symbol=Visualiser._triangleSymbol(pose.th),
# symbolPen=_PO_PEN,
# symbolBrush=_PO_BRUSH)
])
print ("hehe", items)
else:
items[-2].setData([pose.x], [pose.y])
items[-1].setData([pose.x], [pose.y],
symbol=Visualiser._triangleSymbol(pose.th))
print ("items", items)
Visualiser._setLayer(items, layer)
return items
"

Output:
('_drawFnFromType', <class 'abstract_map_lib.visual.PosePrimitive'>)
('here', [])
('hh', -21.649642417413087, 12.420272175124676, 1.52322245842881)
expected a readable buffer object
Saving abstract map on shutdown...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.