Coder Social home page Coder Social logo

Comments (14)

jim-v avatar jim-v commented on August 18, 2024

Can you run the command

rostopic list | grep move_base

After you give a move command and paste the output into this issue.

from move_basic.

jim-v avatar jim-v commented on August 18, 2024

Also, please send the output of

apt-cache policy ros-kinetic-rosbridge-server 

from the robots you have been testing on.

from move_basic.

anfederman avatar anfederman commented on August 18, 2024

apt-cache policy ros-kinetic-rosbridge-server
ros-kinetic-rosbridge-server:
Installed: 0.8.6-0xenial-20180105-183806-0800
Candidate: 0.8.6-0xenial-20180105-183806-0800
Version table:
*** 0.8.6-0xenial-20180105-183806-0800 500
500 http://packages.ros.org/ros/ubuntu xenial/main armhf Packages
100 /var/lib/dpkg/status

from move_basic.

anfederman avatar anfederman commented on August 18, 2024

on boot. move_base topics:
/rosbridge_ws/move_base/cancel
/rosbridge_ws/move_base/feedback
/rosbridge_ws/move_base/goal
/rosbridge_ws/move_base/result
/rosbridge_ws/move_base/status

now move basic or aruco connect so measured move commands in robot commander on loki don't work
after loading aruc and move_basic:

/move_base/cancel
/move_base/feedback
/move_base/goal
/move_base/result
/move_base/status
/move_base_simple/goal

I tried seeing if any topics were echoed while using the arrow keys, none were except status.

So I am not sure what's going on I also see:
/rosbridge_ws/move_base/cancel
/rosbridge_ws/move_base/feedback
/rosbridge_ws/move_base/goal
/rosbridge_ws/move_base/result
/rosbridge_ws/move_base/status

/tf2_web_republisher/cancel
/tf2_web_republisher/feedback
/tf2_web_republisher/goal
/tf2_web_republisher/result
/tf2_web_republisher/status
/tf_static

I was getting tf2 status, but none from rosbridge status.

I am guessing there are missing or incorrect transforms somewhere on Loki in the new loki_base

So arrow keys work, but measured move or set waypoint fails.

On RVIZ I gave a goal, and it tried to move:

status_list:

goal_id: 
  stamp: 
    secs: 1518545119
    nsecs: 574602031
  id: "/move_basic-1-1518545119.574602031"
status: 1
text: "This goal has been accepted by the simple action server"

So I think move-basic ain't talking to move base politely.

from move_basic.

jim-v avatar jim-v commented on August 18, 2024

This is the problem:

/rosbridge_ws/move_base/cancel
/rosbridge_ws/move_base/feedback
/rosbridge_ws/move_base/goal
/rosbridge_ws/move_base/result
/rosbridge_ws/move_base/status

It looks like rosbridge is pre-pending its namespace to the topics.

Re: So I think move-basic ain't talking to move base politely.

There is no move_base in this setup -- move_basic implements its interface.

@jrlandau Can you change robot_commander to use the absolute name /move_base

from move_basic.

anfederman avatar anfederman commented on August 18, 2024

/move_base/cancel
/move_base/feedback
/move_base/goal
/move_base/result
/move_base/status
/move_base_simple/goal
/tf
/tf2_web_republisher/cancel
/tf2_web_republisher/feedback
/tf2_web_republisher/goal
/tf2_web_republisher/result
/tf2_web_republisher/status

with rosbridge removed robot commander doesn't work at all. Connects, but no movement even with arrow keys, though keyboard teleop works. do we remap move_base to tf2???

from move_basic.

rohbotics avatar rohbotics commented on August 18, 2024

@anfederman Rosbridge is required for robot_commander to be able to do anything.

The issue is that rosbridge is using topic names without a leading slash, once we put rosbridge into it's own namspace to handle both ws and wss, this meant that the topics were also namespaced, breaking the code.

@jrlandau can you make sure that all of the topic names in both robot commander and speech commands are fully qualified (aka start with a '/').

from move_basic.

jrlandau avatar jrlandau commented on August 18, 2024

from move_basic.

anfederman avatar anfederman commented on August 18, 2024

I just tested robot commander on Magni. Measured moves no longer work, neither do set waypoint or go to goal. RVIZ 2d nav go to goal does work. Prior to this weekend, robot commander was working. What happened after the huddle? This makes no sense, since I did not update or upgrade my Magni or Robot commander since last week.

from move_basic.

jrlandau avatar jrlandau commented on August 18, 2024

from move_basic.

jim-v avatar jim-v commented on August 18, 2024

@rohbotics I'm fairly sure we've tested Robot_Commander since the rosbridges were moved into namespaces, so I think it's something that changed in rosbridge_websocket recently. However, making all topics Robot_Commander uses absolute seems like it would make us immune to it.

from move_basic.

jrlandau avatar jrlandau commented on August 18, 2024

from move_basic.

jim-v avatar jim-v commented on August 18, 2024

@anfederman tf2_web_repubisher also implements an actionlib interface, hence the topics:

/tf2_web_republisher/cancel
/tf2_web_republisher/feedback
/tf2_web_republisher/goal
/tf2_web_republisher/result
/tf2_web_republisher/status

They are not related to the namespace issue, which renames move_base topics to /rosbridge_ws/move_base. As mentioned, the fix is for Robot_Commander to use /move_base.

from move_basic.

jim-v avatar jim-v commented on August 18, 2024

@jrlandau sent me an updated APK file for Robot_Commander.

On the robot, which had magni_base service running, I ran

roslaunch magni_nav move_basic.launch 

Then on my phone, using the old app, I gave the verbal command "forward one meter".

The robot did not move and the bogus topics appeared:

rostopic list | grep move_base
/rosbridge_ws/move_base/cancel
/rosbridge_ws/move_base/feedback
/rosbridge_ws/move_base/goal
/rosbridge_ws/move_base/result
/rosbridge_ws/move_base/status

Then, I installed the new app on my phone and restarted everything on the robot, to be in a clean state:

sudo service magni-base stop
sudo service magni-base start
roslaunch magni_nav move_basic.launch 

Once again, I gave the verbal command "forward one meter".

This time, the bogus topics did not appear, and move_basic reported receiving the goal:

[ INFO] [1518674933.957489772]: Received goal 1.000000 0.000000 0.000000 base_link

The robot moved forward.

I am closing this issue. If there are issues with localization, they should be opened as new issues.

from move_basic.

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.