GT-RAIL / keyboardteleopjs

Keyboard Teleoperation via Twist Messages
http://robotwebtools.org/
Other
20 stars 16 forks source link

Shouldn't example use localhost? #15

Closed jrlandau closed 9 years ago

jrlandau commented 9 years ago

Line 22 of the script says

22 url : 'ws://rail-sim2.cs.wpi.edu:9090'

Shouldn't this be using localhost instead, as

22 url : 'ws://localhost:9090' ?

I am still unable to get the example working: The code seems to execute but the PR2 does not move. Any help would be appreciated.

rctoris commented 9 years ago

Which branch/version are you using? Looks like the example code is using localhost: https://github.com/WPI-RAIL/keyboardteleopjs/blob/develop/examples/keyboardteleop.html#L25

Are you using this with gazebo? Are the commands coming through?

rostopic echo /base_controller/command

jrlandau commented 9 years ago

I have been using the version at

http://wiki.ros.org/keyboardteleopjs/Tutorials/CreatingABasicTeleopWidgetWithSpeedControl

Apparently it is downlevel.

I will try again with the example code you indicate on GitHub and "rostopic echo"

On Tue, Mar 24, 2015 at 12:29 PM, Russell Toris notifications@github.com wrote:

Which branch/version are you using? Looks like the example code is using localhost: https://github.com/WPI-RAIL/keyboardteleopjs/blob/develop/examples/keyboardteleop.html#L25

Are you using this with gazebo? Are the commands coming through?

rostopic echo /base_controller/command

— Reply to this email directly or view it on GitHub https://github.com/WPI-RAIL/keyboardteleopjs/issues/15#issuecomment-85659653 .

jrlandau commented 9 years ago

After cloning the develop branch, I rewrote several script references in the example as they have a dependency on the folder hierarchy that the browser sees as the current directory. (i.e., they contained "../"). I hope I got that right. Are these libraries different from the ones on the CDN that were used by the tutorial I originally used?

Using Firefox, I could not use the debugger; it interfered with the script's operation. Finally after closing the debugger I got messages of the form showing 2 vectors in 3-space each time I pressed the arrow key.

I also got messages like the following, which may have followed the vector messages.

[WARN] [WallTime: 1427239094.065994] [63.341000] Could not process inbound connection: Internal error processing topic [/base_controller/command]{'message_definition': '# This expresses velocity in free space broken into its linear and angular parts.\nVector3 linear\nVector3 angular\n\n================================================================================\nMSG: geometry_msgs/Vector3\n# This represents a vector in free space. \n\nfloat64 x\nfloat64 y\nfloat64 z\n', 'callerid': '/rostopic_13423_1427238925281', 'tcp_nodelay': '0', 'md5sum': '9f195f881246fdfa2798d1d3eebca84a', 'topic': '/base_controller/command', 'type': 'geometry_msgs/Twist'}

The PR2 still has not moved.

On Tue, Mar 24, 2015 at 12:29 PM, Russell Toris notifications@github.com wrote:

Which branch/version are you using? Looks like the example code is using localhost: https://github.com/WPI-RAIL/keyboardteleopjs/blob/develop/examples/keyboardteleop.html#L25

Are you using this with gazebo? Are the commands coming through?

rostopic echo /base_controller/command

— Reply to this email directly or view it on GitHub https://github.com/WPI-RAIL/keyboardteleopjs/issues/15#issuecomment-85659653 .

jrlandau commented 9 years ago

Here are the echoes that I get: linear: x: 0.0 y: 0.0 z: -0.87 angular: x: 0.0 y: 0.0

z: -0.87

linear: x: 0.0 y: 0.0 z: 0.0 angular: x: 0.0 y: 0.0 z: 0.0

The PR2 still does not move.

Thanks,

Joe

On Tue, Mar 24, 2015 at 12:29 PM, Russell Toris notifications@github.com wrote:

Which branch/version are you using? Looks like the example code is using localhost: https://github.com/WPI-RAIL/keyboardteleopjs/blob/develop/examples/keyboardteleop.html#L25

Are you using this with gazebo? Are the commands coming through?

rostopic echo /base_controller/command

— Reply to this email directly or view it on GitHub https://github.com/WPI-RAIL/keyboardteleopjs/issues/15#issuecomment-85659653 .

rctoris commented 9 years ago

Hmmm strange, if the echos are coming through then the messages are indeed making it through rosbridge and into the ROS system itself. Are you able to move the PR2 within ROS itself? I'm not too familiar with the PR2 gazebo environment anymore but you may be able to launch the pr2 simple keyboard teleop node (http://wiki.ros.org/pr2_teleop). I know in some versions of Gazebo too you must first unpause the simulation.

What version of ROS/rosbridge_suite are you using?

jrlandau commented 9 years ago

I'm using hydro, on Ubuntu 12.04.

At present I am unable to see PR2 moving at all. At the moment, I am going to back off and study what I have so far--I need to learn more about ROS, and Javascript too. Perhaps I will try a different simulator.

My ultimate objective is to add voice control capability to teleop.

Joe

On Wed, Mar 25, 2015 at 5:19 AM, Russell Toris notifications@github.com wrote:

Hmmm strange, if the echos are coming through then the messages are indeed making it through rosbridge and into the ROS system itself. Are you able to move the PR2 within ROS itself? I'm not too familiar with the PR2 gazebo environment anymore but you may be able to launch the pr2 simple keyboard teleop node (http://wiki.ros.org/pr2_teleop). I know in some versions of Gazebo too you must first unpause the simulation.

What version of ROS/rosbridge_suite are you using?

— Reply to this email directly or view it on GitHub https://github.com/WPI-RAIL/keyboardteleopjs/issues/15#issuecomment-86002357 .

jrlandau commented 9 years ago

Hello Russell,

I'm making progress on my project (teleop with speech) but have run into a little snag. Google speech recognition runs awkwardly if the page is not accessed with https. This requirement evidently applies to referenced libraries, too. So I should use https.

My references to Githubissues.

  • Githubissues is a development platform for aggregating issues.