Code Monkey home page Code Monkey logo

Comments (5)

rctoris avatar rctoris commented on September 3, 2024

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.

anefg avatar anefg commented on September 3, 2024

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.

rctoris avatar rctoris commented on September 3, 2024

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.

slesinger avatar slesinger commented on September 3, 2024

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.

rctoris avatar rctoris commented on September 3, 2024

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)

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.