osrf / autodock

ROS packages for automatic docking
Apache License 2.0
78 stars 27 forks source link

cannot launch autodock #8

Open artelrobotics opened 2 years ago

artelrobotics commented 2 years ago

when launching autodock_sim i have an error:

[simple_autodock-2] process has died [pid 3189120, exit code 1, cmd /home/user/catkin_ws/src/autodock/autodock_core/scripts/simple_autodock.py --server --rosparam __name:=simple_autodock __log:=/home/user/.ros/log/f978cfa0-e22e-11ec-ac9d-75877b4c1b58/simple_autodock-2.log]. log file: /home/user/.ros/log/f978cfa0-e22e-11ec-ac9d-75877b4c1b58/simple_autodock-2*.log

AmelFaidi commented 2 years ago

did you launch autodock with gazebo simulation or with your robot? i launched it with gazebo without error and i can help you

artelrobotics commented 2 years ago

https://github.com/osrf/autodock/issues/8#issuecomment-1145021574 yes i want to launch in gazebo, I would be glad if you help me

AmelFaidi commented 2 years ago

as mentioned this package was tested with ros noetic.you should also install dependencies (Dependencies

Fiducial Turtlebot Simulation
sudo apt install ros-noetic-turtlebot3* sudo apt install ros-noetic-turtlebot3-gazebo

1. launch turtlebot3 gazebo world, and also autodock_server

roslaunch autodock_sim tb3_nav_dock_sim.launch

2. launch navigation stack, with provided map. You can also remap the environment by following the turtlebot sim tutorial

New Terminal

export TURTLEBOT3_MODEL=burger roslaunch turtlebot3_navigation turtlebot3_navigation.launch map_file:=$HOME/catkin_ws/src/autodock/autodock_sim/maps/map.yaml open_rviz:=0 then

3. send a dock action. make sure that the robot's camera is facing the charger

New Terminal

rostopic pub /autodock_action/goal autodock_core/AutoDockingActionGoal {} --once

youliangtan commented 2 years ago

@artelrobotics pls do share the full log printout.

artelrobotics commented 2 years ago

I found an error from autodock_core.msg import AutoDockingFeedback ModuleNotFoundError: No module named 'autodock_core.msg'

artelrobotics commented 2 years ago

I found an error from autodock_core.msg import AutoDockingFeedback ModuleNotFoundError: No module named 'autodock_core.msg'

how can i fix it?

youliangtan commented 2 years ago

from autodock_core.msg should be avail after a successful compilation of autodock_core. Check if the repo is avail with:

cd ~/catkin_ws
source install/setup.bash
rospack list | grep autodock
artelrobotics commented 2 years ago

from autodock_core.msg should be avail after a successful compilation of autodock_core. Check if the repo is avail with:

cd ~/catkin_ws
source install/setup.bash
rospack list | grep autodock

autodock_core /home/user/catkin_ws/src/autodock/autodock_core autodock_examples /home/user/catkin_ws/src/autodock/autodock_examples autodock_sim /home/user/catkin_ws/src/autodock/autodock_sim it's my output for your command

Sajith33 commented 5 days ago

My autodock was not opening, I clicked that app icon,it will load at 9% then it suddenly closed