ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

LeoRover not moving upon TeleOp

asked 2022-06-02 06:27:18 -0500

user1928 gravatar image

Hello,

I've cloned the leo_common repo & spawned this LoeRover in gazebo using the below launch file:

<?xml version="1.0"?>
<launch>
  <arg name="model" default="$(find leo_description)/urdf/leo.urdf.xacro"/>
  <param name="robot_description" 
         command="xacro --inorder $(arg model)"/>

  <!-- Spawn the robot model in empty world-->
  <node name="spawn_xacro" pkg="gazebo_ros" type="spawn_model" output="screen" args=" -param robot_description -urdf -x 0 -y 0 -z 1 -model model" />
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
  </include>
</launch>

Then I followed the instructions here & tried to teleop with keyboard using rosrun leo_teleop key_teleop. I'm getting the following message printed to terminal

Waiting for subscriber to connect to /cmd_vel
Waiting for subscriber to connect to /cmd_vel

I think it's printed by this line from teleop_twist_keyboard package. As it suggests, there are no subscribers to the /cmd_vel topic.

My questions:

1) What subscriber should subscribe to the /cmd_vel topic?

2) Are there any controllers already written for the LeoRover?

Note: I'm running ROS Noetic on Ubuntu 20.04.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-03 12:10:27 -0500

user1928 gravatar image

The leo_simulator package was missing. So, I cloned & built it. This solved the problem. I was able to teleop the rover.

Answers to the questions:

1) /cmd_vel_relay was subscribing to /cmd_vel

2) Controllers are ther in the leo_gazebo package. This file particularly.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-06-02 06:27:18 -0500

Seen: 120 times

Last updated: Jun 03 '22