usnistgov/ARIAC

human move

LKmubihei opened this issue · 30 comments

I find human does not move in the human challenge.but after using "ros2 topic echo /ariac_human/joint_states" ,I can see it's output . Does this mean that the Human Challenge is supposed to be like this, or is there a bug present?

In order for the human challenge to work properly you need to install java. The updated instructions are in the documentation. Here is the applicable note
java_install_note

I updated the entire workspace according to the tutorial, but human still does not move in the environment.

What trial configuration are you using?

human_assembly.yaml

I just tested that trial on my machine and it works. Have you run the rosdep install command as well? Also the human does not start until five simulation seconds after the competition is started.

Subscribed topic shows that 'human' is start, but the 'human' does not move. I can also subscribe to /ariac_human/joint_states.

I suspect if it's related to the issue I had in #218, where I couldn't access some websites.

Can you try running sudo apt install openjdk-17-jre and see if that fixes the issue?

image
this issue is not fixed ,this situation will always happen

It looks like there is a problem with Java installation, so that our code is not being launched. Let me suggest the following test: please go to the agent folder (ARIAC/ariac_human/agent/) and execute "./gradlew runHelp". This will probably not work, as it looks like that your machine is not properly configured with Java. This command should work once jdk_17 is properly configured (test with "java --version" and "javac --version").

Do you have any other suggestions? I will try uninstalling and reinstalling Java

image
After downloading the dependencies such as org.jason:jason:3.1 from the local repository, this situation occurred.

.The "runHelp" task has started and is attempting to connect to ws://localhost:9090. But EXECUTING time is too long ,no response

These are good news, it means that the agent is running fine (everything that is needed is there). Now please:

  • Reboot the machine;
  • Double check if the proper java is working;
  • Launching "human_assembly" should work fine

In some machines, like mine, it works the first time and does not work a second time - so far I am the only one in the group with such problem.
To properly work after the first run you must kill the background process that was left there:

  • ps aux | grep GradleDaemon
  • kill <such_process>

I hope you are all set now. If not, when launching the trial, take a look if the agent process is running:
ps -aux | grep RunLocalMAS

Please let me know how it goes.

image

Currently, the 'human' still won't move, as shown in the terminal display when the environment is opened.

image

Hello, good morning. Sorry for the delay. I am now fully available to interact and put the human to work ;-)

Your agent is properly loaded, which is good. But the error message in respect to the 'planner_server' is not good and might be the source of the problem.

Let’s try to “see” what's going on from the human-agent perspective. Therefore let’s enable its console:
On the file ‘~/ariac_ws/src/ARIAC/ariac_human/agent/logging. Properties’, uncomment line 7 and comment line 8.
Then rebuild everything (colcon build) and run again the human_assembly challenge. The console should be there. Please send some prints of that.

Remember that after launching the trial, you must publish the topic for the human to start moving:
ros2 topic pub /ariac/start_human std_msgs/msg/Bool '{data: true}' --once

The first image shows the result after running the challenge, and the second image shows the result after running 'ros2 topic pub /ariac/start_human std_msgs/msg/Bool '{data: true}' --once'.

Thanks for the feedback. This shows that the agent is properly running. So let's focus on the planner_server issue. I suggest the following:

  1. open a new terminal and source ROS2
  2. goto ariac_ws folder
  3. delete everything except the 'src' folder
  4. rebuild with colcon build
  5. Check for updates: apt update
  6. Adjust dependencies: rosdep install --from-paths src --ignore-src -r -y
  7. rebuild: colcon build
  8. source the project: source install/setup. bash

After this run the trial again and let's see if the problem is over

The problem still exists
I have tried your method twice, but the human still won't move.
image

Thanks for the feedback. Let's do another test. Once the 'human_assembly' trial is up, please execute the following in a terminal:
ros2 topic pub /ariac_human/goal_position geometry_msgs/msg/Point "{x: -10.0, y: -4.0, z: 0.0}" --once

If it still does not move after a while, cancel everything and please send here some ROS logs:

  1. $HOME/.ros/log/latest-folder/launch.log
  2. $HOME/.ros/log/controller_server_*.log
  3. $HOME/.ros/log/planner_server_*.log
  4. $HOME/.ros/log/bt_navigator_*.log

Thank you, I found the issue by checking the logs and solve it .now, the human can move .
image

It was the 'ModuleNotFoundError: No module named 'nav2_simple_commander''.So, I followed this tutorial "
https://navigation.ros.org/build_instructions/index.html" to install nav2, which made my workspace too large.

image
Do you have any suggestions for a better solution?"

In my installation I did not add that to my workspace, I simply executed the following:
sudo apt-get install ros-galactic-nav2-simple-commander

ok, I was able to fix it after using this command as well

I am also not able to get the human to move, but I get this error:

[1681685657.981517261] [global_costmap.global_costmap]: Timed out waiting for transform from base_link to map to become available, tf error: Lookup would require extrapolation into the past. Requested time 1.395000 but the earliest data is at time 1.601000, when looking up transform from frame [base_link] to frame [map]

Dear Akash, if you follow the above discussion, you'll see that the Human was not moving given 2 problems:

  1. Java was not properly installed;
  2. nav2-simple-commander was missing.

Tips on how to solve these two issues are given above. If you are sure these are not your problems, please send over here the following ROS logs:

$HOME/.ros/log/latest-folder/launch.log
$HOME/.ros/log/controller_server_.log
$HOME/.ros/log/planner_server_
.log
$HOME/.ros/log/bt_navigator_*.log

Got it working, i didn't realize I was building in correctly, using --symlink-install in order to save time on not having to build every time I change a yaml file. and forgot to chmod +x the python files inside the ariac_human package.

That's great.