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

cannot read property 'x' of undefined #45

Open
joey-wang97 opened this issue Nov 19, 2020 · 1 comment
Open

cannot read property 'x' of undefined #45

joey-wang97 opened this issue Nov 19, 2020 · 1 comment

Comments

@joey-wang97
Copy link

I meet a problem when I try to showing a map.

Uncaught TypeError: Cannot read property 'x' of undefined
    at d.<anonymous> (nav2d.min.js:1)
    at d.h.emit (roslib.min.js:1)
    at d._messageCallback (roslib.min.js:2)
    at d.h.emit (roslib.min.js:1)
    at b (roslib.min.js:2)
    at c (roslib.min.js:2)
    at WebSocket.onmessage (roslib.min.js:2)

image
image

It seems it's a problem with showing current location in map : The data format mismatch.

And I have some nother questions:

  1. Is nav2djs support mutiple goal navigation? And how to do it?
  2. Does the map support zooming and zomming in? If NO, how should I do it?
  3. How does nav2d calculate goal point when I double click the map?

Thanks for your time!

@joey-wang97
Copy link
Author

I have found the reason of the errorCannot read property 'x' of undefined.
The message type of node 'robot_pose' must be geometry_msgs/Pose, not be geometry_msgs/PoseStamped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant