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

vitsensei's profile - activity

2022-06-28 13:08:32 -0500 received badge  Famous Question (source)
2022-02-27 10:39:59 -0500 received badge  Nice Answer (source)
2022-02-02 04:58:50 -0500 received badge  Self-Learner (source)
2021-03-20 06:53:35 -0500 received badge  Famous Question (source)
2021-03-07 17:58:27 -0500 received badge  Notable Question (source)
2021-03-07 17:58:27 -0500 received badge  Popular Question (source)
2021-02-20 06:51:13 -0500 received badge  Good Question (source)
2021-02-20 06:51:08 -0500 received badge  Nice Answer (source)
2021-02-07 07:08:07 -0500 received badge  Enthusiast
2021-02-04 20:22:29 -0500 edited question rosdep init return pkg_resources.DistributionNotFound

rosdep init return pkg_resources.DistributionNotFound Hi all, I just install ROS the first time today (melodic on Ubunt

2021-02-04 20:22:25 -0500 edited question rosdep init return pkg_resources.DistributionNotFound

rosdep init return pkg_resources.DistributionNotFound Hi all, I just install ROS the first time today (melodic on Ubuntu

2021-02-04 20:16:38 -0500 asked a question rosdep init return pkg_resources.DistributionNotFound

rosdep init return pkg_resources.DistributionNotFound Hi all, I just install ROS the first time today (melodic on Ubuntu

2021-02-01 12:16:34 -0500 received badge  Nice Question (source)
2020-08-16 01:47:43 -0500 received badge  Student (source)
2020-08-16 01:42:58 -0500 received badge  Self-Learner (source)
2020-08-16 01:42:58 -0500 received badge  Teacher (source)
2020-08-15 10:13:15 -0500 received badge  Notable Question (source)
2020-08-11 02:13:29 -0500 received badge  Notable Question (source)
2020-05-06 09:42:55 -0500 received badge  Popular Question (source)
2020-03-10 04:44:33 -0500 received badge  Famous Question (source)
2020-03-01 09:33:34 -0500 received badge  Famous Question (source)
2020-03-01 09:33:34 -0500 received badge  Notable Question (source)
2020-03-01 09:33:34 -0500 received badge  Popular Question (source)
2020-01-09 08:49:50 -0500 received badge  Popular Question (source)
2020-01-03 14:37:13 -0500 received badge  Notable Question (source)
2019-12-03 11:44:54 -0500 received badge  Popular Question (source)
2019-11-07 17:19:08 -0500 marked best answer What is the correct way to spawn a model to Gazebo using a Python script?

Hi, I'm kinda fuzzy on this part. Here's my attempt:

rospy.wait_for_service("/gazebo/spawn_urdf_model")

try:
    spawner = rospy.ServiceProxy("/gazebo/spawn_urdf_model", SpawnModel)
    spawner(rover_name, str(open("/home/anh/catkin_ws/src/rover_project/rover_description/urdf/rover.urdf",'r')), "/rover", Pose(position= Point(0,0,2),orientation=Quaternion(0,0,0,0)),"world")

except rospy.ServiceException as e:
    print("Service call failed: ",e)

However, it leads to this result:

('Service call failed: ', ServiceException('service [/gazebo/spawn_urdf_model] responded with an error: ',))

Now, I'm pretty sure I didn't pass the urdf file the correct way. So if you guys can give me a full example on how to do it in Python, that would be awesome!

2019-11-07 17:19:08 -0500 received badge  Scholar (source)
2019-11-07 17:18:56 -0500 answered a question What is the correct way to spawn a model to Gazebo using a Python script?

Alright guys, I figured it out. spawner(rover_name, str(open("/home/anh/catkin_ws/src/rover_project/rover_description/u

2019-11-07 17:18:56 -0500 received badge  Rapid Responder (source)
2019-11-07 05:00:02 -0500 asked a question What is the correct way to spawn a model to Gazebo using a Python script?

What is the correct way to spawn a model to Gazebo using a Python script? Hi, I'm kinda fuzzy on this part. Here's my a

2019-11-06 01:42:13 -0500 marked best answer [Gazebo 9] Could not find parameter robot_description on parameter server

Hi, I know this question is asked a couple of times before, but I just couldn't find the right answer for me. So I'm trying to launch my URDF model with gazebo plug in and use ros_control package to control the movement. But as soon as rover_control.launch run, the error (Could not find parameter robot_description on parameter server) appears. Now, I think this happens because I messed up something in my launch file, my yaml and my urdf. So I will quote three of them here. Thank you for your patient, this is my first week of learning ros.

Control launch file:

<launch>

  <!-- Load joint controller configurations from YAML file to parameter server -->
  <rosparam file="$(find rover_project)/rover_description/config/rover_control.yaml" command="load"/>

  <!-- load the controllers -->
  <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false"
    output="screen" ns="/rover" args="left_wheel_holder_to_left_wheel right_wheel_holder_to_left_wheel joint_state_controller"/>

  <!-- convert joint states to TF transforms for rviz, etc -->
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"
    respawn="false" output="screen">
    <remap from="/joint_states" to="/rover/joint_states" />
  </node>

</launch>

YAML file:

rover:
  # Publish all joint states -----------------------------------
  joint_state_controller:
    type: joint_state_controller/JointStateController
    publish_rate: 50  

  # Position Controllers ---------------------------------------
  left_wheel_holder_to_left_wheel:
    type: effort_controllers/JointPositionController
    joint: left_wheel_holder_to_left_wheel
    pid: {p: 100.0, i: 0.01, d: 10.0}
  right_wheel_holder_to_left_wheel:
    type: effort_controllers/JointPositionController
    joint: right_wheel_holder_to_left_wheel
    pid: {p: 100.0, i: 0.01, d: 10.0}

And the URDF file:

<?xml version="1.0"?>

<robot name="Rover Platform">

  <material name="blue">
    <color rgba="0 0 0.8 1"/>
  </material>

  <material name="grey">
    <color rgba="0.2 0.2 0 1"/>
  </material>    

  <link name="base_link">
    <visual>
      <origin rpy="0 0 0" xyz="0 0 0"/>
      <geometry>
        <box size="1.0 1.0 0.2"/>
      </geometry>
      <material name="blue"/>

    </visual>

    <collision>
      <geometry>
        <box size="1.0 1.0 0.2"/>
      </geometry>
    </collision>

    <inertial>
      <mass value="5"/>
      <inertia ixx="0.83333" ixy="0.0" ixz="0.0" iyy="0.433333" iyz="0.0" izz="0.433333"/>
    </inertial>

  </link>

  <link name="right_wheel_holder_link">

    <visual>
      <origin rpy="0 0 0" xyz="0 0 0"/>
      <geometry>
        <box size="0.3 0.2 0.2"/>
      </geometry>
      <material name="blue"/>
    </visual>

    <collision>
      <geometry>
        <box size="0.3 0.2 0.2"/>
      </geometry>
    </collision>

    <inertial>
      <mass value="1"/>
      <inertia ixx="0.011" ixy="0.0" ixz="0.0" iyy="0.0067" iyz="0.0" izz="0.011"/>
    </inertial>

  </link>

  <link name="left_wheel_holder_link">

    <visual>
      <origin rpy="0 0 0" xyz="0 0 0"/>
      <geometry>
        <box size="0.3 0.2 0.2"/>
      </geometry>
      <material name="blue"/>
    </visual>

    <collision>
      <geometry>
        <box size="0.3 0.2 0.2"/>
      </geometry>
    </collision>

    <inertial>
      <mass value="1"/>
      <inertia ixx="0.011" ixy="0.0" ixz="0.0" iyy="0.0067" iyz="0.0 ...
(more)
2019-11-06 00:19:44 -0500 answered a question URDF model sink to the ground after joint start moving

Alright, I think I figured it out. You need to use hardware_interface/VelocityJointInterface instead of hardware_interfa

2019-11-06 00:19:44 -0500 received badge  Rapid Responder (source)
2019-11-05 23:23:23 -0500 edited question URDF model sink to the ground after joint start moving

URDF model sink to the ground after joint start moving Hi, I'm using Gazebo 9. I tried to use ros_control package to con

2019-11-05 23:23:14 -0500 edited question URDF model sink to the ground after joint start moving

URDF model sink to the ground after joint start moving Hi, I'm using Gazebo 9. I tried to use ros_control package to con

2019-11-05 23:23:14 -0500 received badge  Editor (source)
2019-11-05 23:23:10 -0500 edited question URDF model sink to the ground after joint start moving

URDF model sink to the ground after joint start moving Hi, I'm using Gazebo 9. I tried to use ros_control package to con

2019-11-05 23:22:16 -0500 asked a question URDF model sink to the ground after joint start moving

URDF model sink to the ground after joint start moving Hi, I'm using Gazebo 9. I tried to use ros_control package to con

2019-11-05 20:47:03 -0500 answered a question [Gazebo 9] Could not find parameter robot_description on parameter server

Hey people from the future, I figured it out. What I did to fix this is to add the following to rover_control.launch:

2019-11-05 20:47:03 -0500 received badge  Rapid Responder (source)