pal-robotics / tiago_tutorials

Public tutorials of TIAGo robot
71 stars 41 forks source link

error running ros2 launch tiago_gazebo tiago_gazebo.launch.py #38

Closed AdrianCobo closed 1 year ago

AdrianCobo commented 1 year ago

Type of bug

Issue Description

ros2 launch tiago_gazebo tiago_gazebo.launch.py not working

A) Typo/Error Description

Waiting for '/controller_manager' node to exist joy_teleop not working

Screenshot

Screenshot from 2022-10-06 18-55-29 Screenshot from 2022-10-06 18-55-41 Screenshot from 2022-10-06 18-55-53 Screenshot from 2022-10-06 18-55-59

how to reproduce

Steps to reproduce the behavior:

  1. run in a terminal: ros2 launch br2_tiago sim.launch.py

Desktop :

saikishor commented 1 year ago

Hello @AdrianCobo,

We are preparing a readme file with more detailed instructions that we will made them available soon.

First of all, I recommend you change to Cyclone DDS. With the Fast-DDS we are having some issues, similar that the one you reported. You can do it by setting an environment variable with the command export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp.

Then you can use the tiago_public.rosinstall to get all the packages needed for TIAGo simulation.

Finally, you can launch the simulation with the command you've been using ros2 launch tiago_gazebo tiago_gazebo.launch.py

Best Regards, PAL Robotics Team.

AdrianCobo commented 1 year ago

okay, thanks.

How i have to use the tiago_public.rosinstall ? Sorry for the question but i have never used it before.

Have a nice day, Adrián

saikishor commented 1 year ago

Hello @AdrianCobo,

You can refer to this page for more info: http://wiki.ros.org/vcstool.

We hope this helps. We are looking forward for you to use our TIAGo simulation in ROS2.

Best Regards, PAL Robotics Team.

AdrianCobo commented 1 year ago

thanks, but now I am getting this error executing ros2 launch tiago_gazebo tiago_gazebo.launch.py: 1665090451.7330711 [INFO] [launch]: All log files can be found below /home/adrian/.ros/log/2022-10-06-23-07-31-732528-PORTATIL-18169 1665090451.7332942 [INFO] [launch]: Default logging verbosity is set to INFO 1665090451.9130342 [ERROR] [launch]: Caught exception in launch (see debug for traceback): No module named 'launch_param_builder'

Thanks for all your help, Adrian

saikishor commented 1 year ago

Hello @AdrianCobo,

You are missing to install the package launch_param_builder. Please try to install the package or install all dependencies using rosdep. We hope this helps to solve your issue.

Thank you,

Best Regards, PAL Robotics Team.

AdrianCobo commented 1 year ago

All done but now i am getting the same initial issue

Screenshot from 2022-10-07 10-18-12 Screenshot from 2022-10-07 10-18-37 Screenshot from 2022-10-07 10-18-46 Screenshot from 2022-10-07 10-18-57 Screenshot from 2022-10-07 10-19-51 Screenshot from 2022-10-07 10-20-16 Screenshot from 2022-10-07 10-20-24 Screenshot from 2022-10-07 10-20-40

Noel215 commented 1 year ago

Hi @AdrianCobo,

Execute dpkg -l | grep humble | grep control. I think you could be missing ros-humble-gazebo-ros2-control package. If not, try to clean your workspace and be sure that you are using Cyclone DDS.

For the next time, it's better for us that you paste the log instead of screenshots because it's easier to parse.

AdrianCobo commented 1 year ago

oh sorry, yeh you were right, that package was missing but I installed it and now the simulation is correctly working!!!

But now i have other problem; the robot does not move using: -ros2 launch tiago_gazebo tiago_gazebo.launch.py world_name:=factory or -ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args -r cmd_vel:=key_vel

:(

Thank you so much for all the help!!!

saikishor commented 1 year ago

Hello @AdrianCobo,

We are glad that it worked. Regarding the velocity, try to publish the velocity using the command line and see if you can publish. The topic to publish is /mobile_base_controller/cmd_vel_unstamped. We hope this helps.

Thank you,

Best Regards, PAL Robotics Team.

AdrianCobo commented 1 year ago

Yeh it works using ros2 topic pub -r 10 /mobile_base_controller/cmd_vel_unstamped geometry_msgs/Twist "linear: {x: 0.3}"

Thank you for all!!!

saikishor commented 1 year ago

Hello @AdrianCobo,

We are glad you could work it out.

Best Regards, PAL Robotics Team.