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

RigorMortis's profile - activity

2021-06-26 00:19:13 -0500 received badge  Famous Question (source)
2021-06-26 00:19:13 -0500 received badge  Notable Question (source)
2021-06-26 00:19:13 -0500 received badge  Popular Question (source)
2019-08-01 21:23:42 -0500 received badge  Famous Question (source)
2017-06-20 22:27:25 -0500 received badge  Good Question (source)
2017-06-20 22:26:51 -0500 received badge  Teacher (source)
2017-06-20 22:26:51 -0500 received badge  Self-Learner (source)
2016-08-19 07:40:36 -0500 received badge  Nice Question (source)
2014-10-07 09:57:31 -0500 received badge  Notable Question (source)
2014-07-03 04:40:06 -0500 received badge  Popular Question (source)
2014-06-25 12:15:21 -0500 commented answer How do I know the variable names in a ros service handler

Thanks - that's exactly what I missed!

2014-06-25 12:15:03 -0500 received badge  Scholar (source)
2014-06-25 12:13:28 -0500 received badge  Famous Question (source)
2014-06-25 10:09:01 -0500 asked a question How do I know the variable names in a ros service handler

In the beginner tutorial here:

def handle_add_two_ints(req):
print "Returning [%s + %s = %s]"%(req.a, req.b, (req.a + req.b))
return AddTwoIntsResponse(req.a + req.b)

I understand that the message received will get passed to the 'handle_add_two_ints' function as the object 'req' -- what I do not understand is where the naming convention comes from. They seem to have pulled '.a' and '.b' out of thin air. Can someone please clarify or point me to a site that does? What if I am passing many variables of different types... will they always be alphabetically named?

2014-06-25 10:07:53 -0500 asked a question How do I know the variable names in a ros service handler

In the beginner tutorial here:

def handle_add_two_ints(req):
print "Returning [%s + %s = %s]"%(req.a, req.b, (req.a + req.b))
return AddTwoIntsResponse(req.a + req.b)

I understand that the message received will get passed to the 'handle_add_two_ints' function as the object 'req' -- what I do not understand is where the naming convention comes from. They seem to have pulled '.a' and '.b' out of thin air. Can someone please clarify or point me to a site that does? What if I am passing many variables of different types... will they always be alphabetically named?

2014-06-24 10:41:38 -0500 received badge  Famous Question (source)
2014-06-24 10:41:38 -0500 received badge  Notable Question (source)
2014-06-03 18:53:32 -0500 received badge  Popular Question (source)
2014-06-03 11:28:27 -0500 answered a question What did the author of the "Using the robot state publisher on your own robot" tutorial intend by their launch file example?

I managed to figure it out.

The 'remap' command seems to change parameters that the node uses 'from' some original value 'to' a new value specified by the user. In this case, the 'from' parts are correct, but the 'to' parts need to be changed to reflect your particular robot. For example, if your robot's joint_states are being published to /myrobot/joint_states, and if you load your URDF to the parameter server with this line:

<param name="myrobot" textfile="$(find mypackage)/urdf/myrobot.urdf" />

And then you should write the robot state publisher node as below:

<launch>
    <node pkg="robot_state_publisher" type="state_publisher" name="rob_st_pub" >
        <remap from="robot_description" to="myrobot" />
        <remap from="joint_states" to="myrobot/joint_states" />
    </node>
</launch>

*Note that there was also a mistake in the 'node' line of the launch file that I have corrected. I can't be certain that this is correct for all ROS versions, but I can verify that it works on ROS Fuerte perfectly.

2014-06-03 10:01:51 -0500 asked a question What did the author of the "Using the robot state publisher on your own robot" tutorial intend by their launch file example?

LINK TO TUTORIAL

I am trying to figure out how to publish my robot's state using the 'robot_state_publisher'. I fortunately found the tutorial linked to above, but unfortunately the author was rather vague in their example of a launch file (copied below from the tutorial).

<launch>
    <node pkg="robot_state_publisher" type="robot_state_publisher" name="rob_st_pub" >
        <remap from="robot_description" to="different_robot_description" />
        <remap from="joint_states" to="different_joint_states" />
    </node>
</launch>

I would like to know if anyone can better explain what the difference is between 'robot_description' and 'different_robot_description' and exactly what information these are supposed to contain.

2014-04-11 03:30:43 -0500 received badge  Notable Question (source)
2014-04-11 03:30:40 -0500 received badge  Enthusiast
2014-04-09 14:37:05 -0500 received badge  Popular Question (source)
2014-04-09 14:20:43 -0500 commented question A recent update broke Gazebo for me in ROS Groovy. Where do I post the problem and what information should I include?

Thanks - I posted it there as well.

2014-04-09 05:12:28 -0500 asked a question A recent update broke Gazebo for me in ROS Groovy. Where do I post the problem and what information should I include?

The problem started yesterday (April 8, 2014) and I believe the guilty update is 'ros-groovy-gazebo-ros-current' but I can't be completely sure since many updates happened at the same time.

Running any gazebo launch file from ROS except the 'empty_world.launch' results in errors and an empty gazebo window. Running my launch file (which has worked for weeks previous to yesterday) results in this output:

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found process[gazebo-1]: started with pid [8252] process[gazebo_gui-2]: started with pid [8260] process[spawn_smaug-3]: started with pid [8271]

Gazebo multi-robot simulator, version 1.5.0 Copyright (C) 2013 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org

Gazebo multi-robot simulator, version 1.5.0 Copyright (C) 2013 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org

process[spawn_ramp1-4]: started with pid [8286]

Msg Waiting for master

Msg Waiting for masterprocess[spawn_ramp2-5]: started with pid [8311]

[ INFO] [1397055901.852148927]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...  [1;32Msgm MsgConnected to gazebo master @ http://127.0.0.1:11345Connected to gazebo master @ http://127.0.0.1:11345

Msg[1; Publicized address: 32129.107.182.16m

Msg Publicized address: 129.107.182.16

loading model xml from ros parameter

[INFO] [WallTime: 1397055902.297228] [0.000000] waiting for service /gazebo/spawn_urdf_model loading model xml from ros parameter

[INFO] [WallTime: 1397055902.335058] [0.000000] waiting for service /gazebo/spawn_urdf_model

Service call failed: unable to connect to service: [Errno 104] Connection reset by peer

Service call failed: transport error completing service call: unable to receive data from sender, check sender's logs for details

Segmentation fault (core dumped)

[gazebo-1] process has died [pid 8252, exit code 139, cmd /opt/ros/groovy/stacks/simulator_gazebo/gazebo/scripts/gazebo -u /opt/ros/groovy/stacks/simulator_gazebo/gazebo_worlds/worlds/empty.world __name:=gazebo __log:=/home/emrysm/.ros/log/9caa95c0-bff4-11e3-9830-74e50b1cfbaa/gazebo-1.log].

log file: /home/emrysm/.ros/log/9caa95c0-bff4-11e3-9830-74e50b1cfbaa/gazebo-1*.log

loading model xml from ros parameter

[INFO] [WallTime: 1397055902.447661] [0.000000] waiting for service /gazebo/spawn_urdf_model

[spawn_smaug-3] process has finished cleanly

log file: /home/emrysm/.ros/log/9caa95c0-bff4-11e3-9830-74e50b1cfbaa/spawn_smaug-3*.log

[spawn_ramp1-4] process has finished cleanly

log file: /home/emrysm/.ros/log/9caa95c0-bff4-11e3-9830-74e50b1cfbaa/spawn_ramp1-4*.log

[gazebo_gui-2] process has finished cleanly

log file: /home/emrysm/.ros/log/9caa95c0-bff4-11e3-9830-74e50b1cfbaa/gazebo_gui-2*.log

2013-09-22 21:09:42 -0500 received badge  Famous Question (source)
2013-06-17 04:20:06 -0500 received badge  Notable Question (source)
2013-06-14 01:55:37 -0500 received badge  Student (source)
2013-06-13 10:21:34 -0500 received badge  Popular Question (source)
2013-06-12 05:08:28 -0500 asked a question problem compiling pr2_build_map_gazebo_demo

I am trying to follow the tutorial at: (I guess my karma also isn't high enough to post links...) answers.ros.org/question/52608/pr2-move_base-how-to-get-map/

but when I run "rosmake pr2_build_map_gazebo_demo" I receive an error (attached). Any help is appreciated.

Apparently I can't attach a file because my "karma" isn't high enough (thanks site admins!!) so here's the ugly mess that I have to paste into here:

rosmake pr2_build_map_gazebo_demo [ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['pr2_build_map_gazebo_demo']
[ rosmake ] Logging to directory /home/emrysm/.ros/rosmake/rosmake_output-20130612-094759
[ rosmake ] Expanded args ['pr2_build_map_gazebo_demo'] to: ['pr2_build_map_gazebo_demo']
[rosmake-0] Starting >>> common_rosdeps [ make ]
[rosmake-1] Starting >>> std_msgs [ make ]
[rosmake-3] Starting >>> trajectory_msgs [ make ]
[rosmake-4] Starting >>> roslib [ make ]
[rosmake-2] Starting >>> geometry_msgs [ make ]
[rosmake-5] Starting >>> bullet [ make ]
[rosmake-0] Finished <<< common_rosdeps ROS_NOBUILD in package common_rosdeps
[rosmake-6] Starting >>> roslang [ make ]
[rosmake-0] Starting >>> ogre [ make ]
[rosmake-1] Finished <<< std_msgs No Makefile in package std_msgs
[rosmake-7] Starting >>> colladadom [ make ]
[rosmake-4] Finished <<< roslib No Makefile in package roslib
[rosmake-2] Finished <<< geometry_msgs No Makefile in package geometry_msgs
[rosmake-1] Starting >>> urdf_interface [ make ]
[rosmake-2] Starting >>> sensor_msgs [ make ]
[rosmake-4] Starting >>> std_srvs [ make ]
[rosmake-5] Finished <<< bullet ROS_NOBUILD in package bullet
[rosmake-5] Starting >>> rosconsole [ make ]
[rosmake-3] Finished <<< trajectory_msgs No Makefile in package trajectory_msgs
[rosmake-3] Starting >>> angles [ make ]
[rosmake-6] Finished <<< roslang No Makefile in package roslang
[rosmake-0] Finished <<< ogre ROS_NOBUILD in package ogre
[rosmake-6] Starting >>> roscpp [ make ]
[rosmake-0] Starting >>> rospy [ make ]
[rosmake-4] Finished <<< std_srvs No Makefile in package std_srvs
[rosmake-7] Finished <<< colladadom ROS_NOBUILD in package colladadom
[rosmake-1] Finished <<< urdf_interface ROS_NOBUILD in package urdf_interface
[rosmake-2] Finished <<< sensor_msgs No Makefile in package sensor_msgs
[rosmake-7] Starting >>> rostest [ make ]
[rosmake-2] Starting >>> gazebo_msgs [ make ]
[rosmake-4] Starting >>> roswtf [ make ]
[rosmake-5] Finished <<< rosconsole No Makefile in package rosconsole
[rosmake-5] Starting >>> rosgraph_msgs [ make ]
[rosmake-1] Starting >>> message_filters [ make ]
[rosmake-6] Finished <<< roscpp No Makefile in package roscpp
[rosmake-3] Finished <<< angles ROS_NOBUILD in package angles
[rosmake-3] Starting >>> collada_parser [ make ]
[rosmake-6] Starting >>> urdf_parser [ make ]
[rosmake-0] Finished <<< rospy No Makefile in package rospy
[rosmake-7] Finished <<< rostest No Makefile in package rostest
[rosmake-5] Finished <<< rosgraph_msgs No Makefile in package rosgraph_msgs
[rosmake-0] Starting >>> rosservice [ make ]
[rosmake-7] Starting >>> rosbuild [ make ]
[rosmake-3] Finished <<< collada_parser ROS_NOBUILD in package collada_parser
[rosmake-3] Starting >>> smclib [ make ]
[rosmake-2] Finished <<< gazebo_msgs ROS_NOBUILD in package gazebo_msgs
[rosmake-5] Starting >>> bond [ make ]
[rosmake-4] Finished <<< roswtf No Makefile in package roswtf
[rosmake-2] Starting >>> nav_msgs [ make ]
[rosmake-6] Finished <<< urdf_parser ROS_NOBUILD in package urdf_parser
[rosmake-6] Starting >>> urdf [ make ]
[rosmake-1] Finished <<< message_filters No Makefile in package message_filters
[rosmake-4] Starting >>> diagnostic_msgs [ make ]
[rosmake-1] Starting >>> tf [ make ]
[rosmake-7] Finished <<< rosbuild No Makefile in package rosbuild
[rosmake-0] Finished <<< rosservice No Makefile in package rosservice
[rosmake-0] Starting >>> dynamic_reconfigure [ make ]
[rosmake-5] Finished <<< bond ROS_NOBUILD in package bond
[rosmake-7] Starting >>> protobuf [ make ]
[rosmake-3] Finished <<< smclib ROS_NOBUILD in package smclib
[rosmake-2] Finished <<< nav_msgs No Makefile in package nav_msgs
[rosmake-2] Starting >>> pluginlib [ make ]
[rosmake-3] Starting >>> rosbag [ make ]
[rosmake-6] Finished <<< urdf ROS_NOBUILD in package urdf
[rosmake-5] Starting >>> bondcpp [ make ]
[rosmake-1] Finished <<< tf ROS_NOBUILD in package tf
[rosmake-4] Finished <<< diagnostic_msgs No Makefile in package diagnostic_msgs
[rosmake-4] Starting >>> diagnostic_updater [ make ]
[rosmake-6] Starting >>> flann [ make ]
[rosmake-0] Finished <<< dynamic_reconfigure ROS_NOBUILD in package dynamic_reconfigure
[rosmake-1] Starting >>> opende [ make ]
[rosmake-5] Finished <<< bondcpp ROS_NOBUILD in package ...










































































(more)