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

elsey's profile - activity

2015-08-13 09:57:00 -0500 received badge  Taxonomist
2014-01-28 17:21:51 -0500 marked best answer Should rviz have a segmentation fault with other nodes are stopped? e.g. openni_camera launch

Hi,

I'm using diamondback and rviz has segmentation faults often whenever I kill another node.

Should I expect this whenever stopping a node that was publishing a topic that rviz is subscribed to?

E.g.: I run roscore in one terminal, openni_camera openni_node.launch, and rviz from another terminal. I can view the /camera/rgb/points topic in rviz fine. However, if I stop the openni_node.launch, rviz segfaults.

Is there anything I can do to change the rosrun / roslaunch settings to prevent this? It would be helpful to not have to restart rviz everytime I want to stop a node to debug something.

Thanks.

2012-11-02 04:19:56 -0500 received badge  Famous Question (source)
2012-11-02 04:19:56 -0500 received badge  Notable Question (source)
2012-09-28 02:14:33 -0500 received badge  Notable Question (source)
2012-09-28 02:14:33 -0500 received badge  Popular Question (source)
2012-09-28 02:14:33 -0500 received badge  Famous Question (source)
2012-08-16 21:48:49 -0500 received badge  Famous Question (source)
2012-08-16 21:48:49 -0500 received badge  Popular Question (source)
2012-08-16 21:48:49 -0500 received badge  Notable Question (source)
2012-01-07 09:01:18 -0500 commented answer action speed in move_arm tutorial
Thanks for the clarification about that parameter. Even knowing how to slow down the execution would be helpful so that we could test whether the speed limits are actually the issue.
2012-01-06 04:14:14 -0500 received badge  Organizer (source)
2012-01-05 15:07:04 -0500 asked a question action speed in move_arm tutorial

I'm trying the tutorial for move_arm motion planning: http://www.ros.org/wiki/move_arm/Tutorials/MoveArmPoseGoal

I would like to be able to change the speed of the arm motions. Instead of launching the move_arm node with:

<include file="$(find pr2_arm_navigation_actions)/launch/move_right_arm.launch"/>

I add the parameter "move_arm_frequency" as below:

  <node pkg="move_arm" type="move_arm_simple_action" output="screen" name="move_right_arm">    
    <remap from="arm_ik" to="pr2_right_arm_kinematics/get_constraint_aware_ik" />   
    <param name="group" type="string" value="right_arm" />
    <param name="controller_action_name" type="string" value="/r_arm_controller/follow_joint_trajectory" />
    <param name="move_arm_frequency" type="double" value="80" />    
  </node>

I run the tutorial example, unchanged: rosrun pr2_arm_navigation_tutorials move_arm_simple_pose_goal

However, when I change the value of "move_arm_frequency" to different values (say 1 vs. 80), I see no noticeable change in the executed action time, either slower or faster. (The default value in move_arm_simple_action.cpp is 50.) I always reset to the same joint pose, relaunched the move_arm node, and verified with "rosparam get" that the parameter has new values.

I'm pretty sure the parameter is getting updated, since a value of 0 results in a runtime error. It seems that it should affect the action completion time in the CONTROL state:

move_arm_action_feedback_.time_to_completion = ros::Duration(1.0/move_arm_frequency_);

Is there a way to change the speed of the arm motion for the move_arm example, either through this parameter or another one?

2011-12-14 05:48:56 -0500 received badge  Supporter (source)
2011-10-27 18:56:28 -0500 received badge  Popular Question (source)
2011-09-02 11:58:48 -0500 marked best answer combining launch files doesn't give same behavior: order / timing of ik solver

There is no guaranteed ordering in roslaunch. All programs should behave nicely to work.

I'm assuming your second program just calls a service? What probably happens is that the service call is done before the service is up. To fix that you should wait until a service becomes available in the other program and then go into the processing part.

2011-07-11 13:59:07 -0500 commented question combining launch files doesn't give same behavior: order / timing of ik solver
@hsu, What was updated by you about my posting? Was there something wrong about my formatting? I'd like to know for the next time I post.
2011-07-11 13:24:06 -0500 received badge  Editor (source)
2011-07-11 13:22:52 -0500 asked a question combining launch files doesn't give same behavior: order / timing of ik solver

I'm trying to launch nodes in one combined launch file.

If I launch nodes separately using the two files below, calls to the IK services work fine (i.e. call the second node's service ik_trajectory, which uses the first node's ik solver) :

ik_solver.launch:

<launch>  
  <include file="$(find pr2_arm_navigation_kinematics)/launch/pr2_ik_rarm_node.launch"/>  
</launch>

cartesian_ik_trajectory.launch:

<launch>  
  <node pkg="ik_trajectory" type="ik_trajectory" name="ik_trajectory"/>  
</launch>

The IK also works if I run the first launch file and use "rosrun ik_trajectory ik_trajectory" in place of the second launch file.

However, if I combine the two commands in one launch file, the service calls fail even though the input / starting arm state for IK is the same:

combined.launch:

<launch>  
   <include file="$(find pr2_arm_navigation_kinematics)/launch/pr2_ik_rarm_node.launch"/>   
   <node pkg="ik_trajectory" type="ik_trajectory" name="ik_trajectory"/>   
</launch>

The node in the second launch file was written by someone else, so I'm trying to look into those details. However, I don't understand why the behavior should be different. Is there an ordering or timing issue with the IK solver? I can even launch the separate launch files in reverse order without problem. It's only when I combine the commands in one launch file that the service fails.

Note that there's no failure when I actually run the launch files, only when I call the service provided by the second ik_trajectory node. I checked rosservice list to see that the same services are available in either case.

2011-04-02 14:29:48 -0500 received badge  Good Question (source)
2011-04-02 14:29:46 -0500 received badge  Nice Answer (source)
2011-03-30 07:44:49 -0500 commented answer Should rviz have a segmentation fault with other nodes are stopped? e.g. openni_camera launch
I updated by downloading and installing the driver from the Nvidia website: <http://www.nvidia.com/Download/index.aspx?lang=en-us> . Someone also pointed me to <https://launchpad.net/~ubuntu-x-swat/+archive/x-updates> as an alternative to installing from the website, but I haven't tried it myself.
2011-03-29 12:45:40 -0500 received badge  Nice Question (source)
2011-03-24 12:02:33 -0500 received badge  Student (source)
2011-03-24 12:02:19 -0500 received badge  Teacher (source)
2011-03-24 12:02:19 -0500 received badge  Self-Learner (source)
2011-03-24 07:42:13 -0500 answered a question Should rviz have a segmentation fault with other nodes are stopped? e.g. openni_camera launch

Thanks, Eric, for pointing out the thread on the drivers issue.

I upgraded drivers from NVIDIA 260.19.06 to NVIDIA 260.19.44, and that solved the issue.