Comments (5)
Hm strange. Are all the necessary ROS nodes running (e.g., map server and including robot_pose_publisher, this is one many people typically forget).
from nav2djs.
Yes, I have all the nodes running and even I can navigate using Rviz. Every time I execute the html example file at the rosbridge_server console I get this:
[INFO] [WallTime: 1390919875.469234] [1789.320000] [Client 1] Subscribed to /map
[INFO] [WallTime: 1390919878.368571] [1791.329000] [Client 1] Subscribed to /pr2_move_base/status
[INFO] [WallTime: 1390919878.407821] [1791.359000] [Client 1] Subscribed to /pr2_move_base/feedback
[INFO] [WallTime: 1390919878.453556] [1791.378000] [Client 1] Subscribed to /pr2_move_base/result
[INFO] [WallTime: 1390919878.498216] [1791.412000] [Client 1] Subscribed to /robot_pose
[INFO] [WallTime: 1390919878.498860] [1791.413000] [Client 1] Unsubscribed from /map
That is ok, or I should get something else or different?
from nav2djs.
That looks fine. You are running the tutorial map server? i.e., with the Willow map?
Also, is rostopic echo /robot_pose working correctly?
from nav2djs.
I have reached the same issue.
Log roscore console:
[INFO] [WallTime: 1406479865.698687] [Client 4] Subscribed to /move_base/status
[INFO] [WallTime: 1406479865.702162] [Client 4] Subscribed to /move_base/feedback
[INFO] [WallTime: 1406479865.707347] [Client 4] Subscribed to /move_base/result
[INFO] [WallTime: 1406479865.721430] [Client 4] Subscribed to /robot_pose
Rosbridge subscribtions:
honza@robot:~/workspace/src/robik/launch$ rosnode info /rosbridge_websocket
Node [/rosbridge_websocket]
Publications:
- /robik_ai [std_msgs/String]
- /move_base/goal [move_base_msgs/MoveBaseActionGoal]
- /robik_action_arm/goal [robik/armActionGoal]
- /cmd_vel [geometry_msgs/Twist]
- /rosout [rosgraph_msgs/Log]
- /move_base/cancel [actionlib_msgs/GoalID]
Subscriptions:
- /move_base/feedback [move_base_msgs/MoveBaseActionFeedback]
- /move_base/result [move_base_msgs/MoveBaseActionResult]
- /move_base/status [actionlib_msgs/GoalStatusArray]
- /map [nav_msgs/OccupancyGrid]
- /robik_status [robik/GenericStatus]
- /joint_states [sensor_msgs/JointState]
- /robot_pose [geometry_msgs/Pose]
Robot pose data:
honza@robot:~/workspace/src/robik/launch$ rostopic echo /robot_pose
position:
x: 0.0597938961481
y: 0.0509195194542
z: 0.0
orientation:
x: 0.0
y: 0.0
z: -0.0149936833409
w: 0.999887588412
Topic /map also provides data. I can see my map successfully in RViz. The map has quite some unoccupied space on its margins. I'm not sure if the web widget is scaling the map properly?
/move_base is my correct topic name.
I'm using Ubuntu 14.04 with Chrome 36 on client.
Any ideas what could be wrong?
Thank you
from nav2djs.
There were some issues on the latest version of Chrome preventing rendering, this should now be fixed in the latest ros2djs and nav2djs!
from nav2djs.
Related Issues (20)
- topic name for poseListener HOT 1
- issue in case of multi clients HOT 1
- Load map image if specified, regardless of messages received
- make compatible version with roslib and ros2d HOT 3
- move to WPI-RAIL
- Nice things to have HOT 4
- map_metainfo origin is not used HOT 8
- goal pose is not mirrored with rviz. HOT 4
- rootObject should be stage? HOT 5
- Extend Navigator to listen for other pose types/topics HOT 2
- Release 0.4.0 HOT 1
- Resize Nav Arrow HOT 1
- cannot read property 'x' of undefined HOT 1
- The goal pose passed to this planner must be in the map frame. It is instead in the /map frame. HOT 1
- Trying to upload the image in Rosjs on top of the map
- Has nav2djs library been discontinued? Unable to link it using any CDN link. HOT 2
- Robot doesn't move anymore
- Not Compatible with ROS2 Humble ?? HOT 1
- Map loading indication HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nav2djs.