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

aaditya_saraiya's profile - activity

2020-07-24 13:51:35 -0500 received badge  Famous Question (source)
2020-07-24 13:51:35 -0500 received badge  Popular Question (source)
2020-07-24 13:51:35 -0500 received badge  Notable Question (source)
2020-05-18 18:53:20 -0500 received badge  Nice Answer (source)
2019-03-15 07:20:07 -0500 marked best answer Kinect sensor unable to see objects placed in front of it

Hey everyone!

I am Aaditya Saraiya and to start of my GSoC 2018 project, I wish to simulate a Kinect sensor in Gazebo. I followed the Gazebo tutorial to simulate a Kinect sensor which uses the OpenNI driver. I am running ROS Kinetic on Ubuntu 16.04, Gazebo version 7 and RViz version 1.12.15 (kinetic).

Initially, rostopic list was not showing the depth and image topics.This post helped me to solve that issue. However, even though the point cloud data is being posted, the sphere placed in front of the Kinect is not visible in RViz, which can be observed in the image. I tried moving the Kinect near and farther away from the objects considering the fact that Kinect has a minimum and maximum depth of visibility.

image description

Some peculiar things which I noted was that on using rostopic echo on the /tf topic, there is warning message which is as follows:

WARNING: no messages received and simulated time is active. Is /clock being published?

However, infact, the /clock is being published (automatically by Gazebo I think).

Secondly, Fixed frame window under the Global status in Rviz has the following warning.

No tf data. Actual error: Fixed Frame [camera_link] does not exist.

I have added the camera plugin as well which has been taken from the Gazebo tutorial.

 <plugin name="camera_plugin" filename="libgazebo_ros_openni_kinect.so">
  <baseline>0.2</baseline>
  <alwaysOn>true</alwaysOn>
  <!-- Keep this zero, update_rate in the parent <sensor> tag
    will control the frame rate. -->
  <updateRate>0.0</updateRate>
  <cameraName>camera_ir</cameraName>
  <imageTopicName>/camera/depth/image_raw</imageTopicName>
  <cameraInfoTopicName>/camera/depth/camera_info</cameraInfoTopicName>
  <depthImageTopicName>/camera/depth/image_raw</depthImageTopicName>
  <depthImageInfoTopicName>/camera/depth/camera_info</depthImageInfoTopicName>
  <pointCloudTopicName>/camera/depth/points</pointCloudTopicName>
  <frameName>camera_link</frameName>
  <pointCloudCutoff>0.05</pointCloudCutoff>
  <distortionK1>0</distortionK1>
  <distortionK2>0</distortionK2>
  <distortionK3>0</distortionK3>
  <distortionT1>0</distortionT1>
  <distortionT2>0</distortionT2>
  <CxPrime>0</CxPrime>
  <Cx>0</Cx>
  <Cy>0</Cy>
  <focalLength>0</focalLength>
  <hackBaseline>0</hackBaseline>
</plugin>

Is there some issue behind tf not being published properly?

Thanks in advance!

2018-12-18 00:35:13 -0500 received badge  Famous Question (source)
2018-12-04 07:03:54 -0500 received badge  Famous Question (source)
2018-10-09 03:11:04 -0500 received badge  Famous Question (source)
2018-08-13 20:54:48 -0500 received badge  Famous Question (source)
2018-08-11 13:22:00 -0500 received badge  Famous Question (source)
2018-07-21 17:18:01 -0500 received badge  Notable Question (source)
2018-07-20 15:34:04 -0500 edited answer Can't display occupied voxels octomap using pointcloud2

Hey! I just checked your files. I think you have a one specific issue. Your sensor_manager.launch does not load the

2018-07-20 15:33:29 -0500 answered a question Can't display occupied voxels octomap using pointcloud2

Hey! I just checked your files. I think you have a one specific. Your sensor_manager.launch does not load the sensor

2018-07-20 15:17:05 -0500 commented question Problems with ur3 Simulation

Hi! Can you post the results of rosrun tf view_frames followed by an evince frames.pdf?

2018-07-20 12:03:03 -0500 received badge  Notable Question (source)
2018-07-18 06:30:40 -0500 asked a question Multiple and flipped octomaps being generated

Multiple and flipped octomaps being generated Hi everyone, So as a part of my GSoC 2018 project, I am using the Kinect

2018-07-16 14:26:59 -0500 received badge  Popular Question (source)
2018-07-16 14:24:44 -0500 marked best answer The weight on position constraint for link is near zero. Setting to 1.0.

Hi,

While trying to move a robotic manipulator to a new pose (using MoveIt!), in order to move to the Next Best View of the manipulator's workspace using the YAK package, I repeatedly get this warning which states that

The weight on position constraint for link 'camera_depth_optical_frame' is near zero. Setting to 1.0.

Is this the reason why I am getting the following error?

Position constraint violated on link 'camera_depth_optical_frame'. Desired: -0.300000, -0.300000, 0.800000, current: -0.187025, 0.287808, 0.549807

[ WARN] [1530986530.323626313, 426.508000000]: Failed to fetch current robot state.
[ INFO] [1530986530.324177460, 426.508000000]: Combined planning and execution request received for MoveGroup action. Forwarding to planning and execution pipeline.
[ WARN] [1530986530.324308021, 426.508000000]: The weight on position constraint for link 'camera_depth_optical_frame' is near zero.  Setting to 1.0.
[ INFO] [1530986530.324483190, 426.508000000]: Planning attempt 1 of at most 1
[ WARN] [1530986530.325945894, 426.508000000]: The weight on position constraint for link 'camera_depth_optical_frame' is near zero.  Setting to 1.0.
[ INFO] [1530986530.326051436, 426.508000000]: Path constraints not satisfied for start state...
[ WARN] [1530986530.326549565, 426.508000000]: The weight on position constraint for link 'camera_depth_optical_frame' is near zero.  Setting to 1.0.
[ INFO] [1530986530.326762763, 426.508000000]: Position constraint violated on link 'camera_depth_optical_frame'. Desired: -0.300000, -0.300000, 0.800000, current: 0.816647, 0.204373, 0.491472
[ INFO] [1530986530.326923292, 426.508000000]: Differences -1.11665 -0.504373 0.308528
[ INFO] [1530986530.327083872, 426.508000000]: Planning to path constraints...
[ WARN] [1530986530.327393233, 426.508000000]: The weight on position constraint for link 'camera_depth_optical_frame' is near zero.  Setting to 1.0.
[ WARN] [1530986530.327645776, 426.508000000]: The weight on position constraint for link 'camera_depth_optical_frame' is near zero.  Setting to 1.0.
Debug:   Starting goal sampling thread
[ INFO] [1530986530.328125348, 426.508000000]: Planner configuration 'manipulator' will use planner 'geometric::RRTConnect'. Additional configuration parameters will be set when the planner is constructed.
Debug:   The value of parameter 'longest_valid_segment_fraction' is now: '0.0050000000000000001'
Debug:   RRTConnect: Planner range detected to be 7.539822
Info:    RRTConnect: Starting planning with 1 states already in datastructure
Debug:   RRTConnect: Waiting for goal region samples ...
Debug:   Beginning sampling thread computation
Debug:   RRTConnect: Waited 0.431969 seconds for the first goal sample.
Info:    RRTConnect: Created 4 states (2 start + 2 goal)
Info:    Solution found in 0.475992 seconds
Debug:   Attempting to stop goal sampling thread...
Debug:   Stopped goal sampling thread after 2 sampling attempts
Info:    SimpleSetup: Path simplification took 0.026644 seconds and changed from 3 to 2 states
[ INFO] [1530986530.925958530, 426.765000000]: Planned to path constraints. Resuming original planning request.
[ WARN] [1530986530.926477926, 426.765000000]: The weight on position constraint for link 'camera_depth_optical_frame' is near zero.  Setting to 1.0.
[ WARN] [1530986530.926728899, 426.765000000]: The weight on position constraint for link 'camera_depth_optical_frame' is near zero.  Setting to 1.0.
[ WARN] [1530986530.927186930, 426.765000000]: The weight on position constraint for link 'camera_depth_optical_frame' is near zero.  Setting to 1.0.
Debug:   Starting goal sampling thread
Debug:   Waiting for space information to be ...
(more)
2018-07-16 14:24:39 -0500 answered a question The weight on position constraint for link is near zero. Setting to 1.0.

Just for future reference. By adding the following line, this warning can be avoided. More details available in this pul

2018-07-16 14:22:37 -0500 marked best answer Tf has two or more unconnected trees

Hey! I was trying to use a Kinect fusion package for my project on Robot Workcell Discovery. I am using ROS Kinetic and Ubuntu 16.04.

While launching the Kinect fusion node, I face the following error.

terminate called after throwing an instance of 'tf2::LookupException'. what(): Could not find a connection between 'volume_pose' and 'camera_depth_optical_frame' because they are not part of the same tree. Tf has two or more unconnected trees.

How as per the Link to the tf frames.pdf file generated created using rosrun tf view_frames these two frames seem to be in the same tree.

On some occasions, the same launch file gives the following error. terminate called after throwing an instance of 'tf2::LookupException' what(): "volume_pose" passed to lookupTransform argument target_frame does not exist.

This is the related code

if (!camera->nodeHandle.getParam("use_pose_hints", use_pose_hints_)) 
{
    ROS_INFO("Failed to get use_pose_hints flag!");
  }
 ROS_INFO_STREAM("Use pose hints set to " << use_pose_hints_);
 tfListener_.waitForTransform("volume_pose", "camera_depth_optical_frame", ros::Time::now(), ros::Duration(2));
tfListener_.lookupTransform("volume_pose", "camera_depth_optical_frame", ros::Time(0), previous_volume_to_sensor_transform_);
 }
    }

I have added Listener. waitForTransform() as mentioned in this answer. I have also added <param name="/use_sim_time" value="true"/> on the top of my launch files as as mentioned by some other answers, however the problem still persists.

There definitely seems to be a problem of the volume_pose not being available in time. What could be the potential reason and solution for this issue?

Edit: In one case, I received this error message as well which according to this link is again due to a delayed source of frames.

Warning: TF_OLD_DATA ignoring data from the past for frame table at time 0.165 according to authority unknown_publisher

Output of tf monitor

Waiting for transform chain to become available between volume_pose and camera_depth_optical_frame 

RESULTS: for volume_pose to camera_depth_optical_frame
 Chain is: volume_pose -> base_link -> table -> world -> shoulder_link -> upper_arm_link -> forearm_link -> wrist_1_link -> wrist_2_link -> wrist_3_link -> tool0 -> camera_link -> camera_depth_frame -> camera_depth_optical_frame
Net delay     avg = 0.00997896: max = 0.099

Frames:
Frame: base_link published by unknown_publisher(static) Average Delay: 0 Max Delay: 0
Frame: camera_depth_frame published by unknown_publisher(static) Average Delay: 0 Max Delay: 0
Frame: camera_depth_optical_frame published by unknown_publisher(static) Average Delay: 0 Max Delay: 0
Frame: camera_link published by unknown_publisher(static) Average Delay: 0 Max Delay: 0
Frame: forearm_link published by unknown_publisher Average Delay: 0.000272727 Max Delay: 0.003
Frame: shoulder_link published by unknown_publisher Average Delay: 0.000272727 Max Delay: 0.003
Frame: table published by unknown_publisher Average Delay: -0.0666667 Max Delay: 0
Frame: tool0 published by unknown_publisher(static) Average Delay: 0 Max Delay: 0
Frame: upper_arm_link published by unknown_publisher Average Delay: 0.000272727 Max Delay: 0.003
Frame: volume_pose published by unknown_publisher Average Delay: 0 Max Delay: 0
Frame: wrist_1_link published by unknown_publisher Average Delay: 0.000272727 Max Delay: 0.003
Frame: wrist_2_link published by unknown_publisher Average Delay: 0.000272727 Max Delay: 0.003
Frame: wrist_3_link published by unknown_publisher Average Delay: 0.000272727 Max Delay: 0.003

All Broadcasters:
Node: unknown_publisher 85 Hz, Average Delay: -0.0233529 Max Delay: 0.003
Node: unknown_publisher ...
(more)
2018-07-10 05:00:10 -0500 received badge  Famous Question (source)
2018-07-07 09:06:13 -0500 edited question The weight on position constraint for link is near zero. Setting to 1.0.

The weight on position constraint for link is near zero. Setting to 1.0. Hi, While trying to move a robotic manipulator

2018-07-07 09:03:54 -0500 asked a question The weight on position constraint for link is near zero. Setting to 1.0.

The weight on position constraint for link is near zero. Setting to 1.0. Hi, While trying to move a robotic manipulator

2018-07-02 11:43:10 -0500 received badge  Notable Question (source)
2018-06-27 08:36:46 -0500 answered a question Tf has two or more unconnected trees

Hi! Just for anyone facing a similar issue in the future. Instead of if (!camera->nodeHandle.getParam("use_pose_

2018-06-27 08:09:25 -0500 received badge  Notable Question (source)
2018-06-27 05:31:53 -0500 edited question Tf has two or more unconnected trees

Tf has two or more unconnected trees Hey! I was trying to use a Kinect fusion package for my project on Robot Workcell D

2018-06-27 02:49:17 -0500 received badge  Popular Question (source)
2018-06-27 02:09:22 -0500 commented answer Tf has two or more unconnected trees

Is the time delay created because I am launching them separately? Should I be launching everything together? Edit: The

2018-06-27 02:09:10 -0500 commented answer Tf has two or more unconnected trees

Is the time delay created because I am launching them separately? Should I be launching everything together? Edit: The

2018-06-27 02:08:05 -0500 edited question Tf has two or more unconnected trees

Tf has two or more unconnected trees Hey! I was trying to use a Kinect fusion package for my project on Robot Workcell D

2018-06-27 01:59:17 -0500 commented answer Tf has two or more unconnected trees

Is the time delay created because I am launching them separately? Should I be launching everything together? Thanks in

2018-06-27 01:58:12 -0500 commented answer Tf has two or more unconnected trees

Hey Pete! Thanks a lot for your reply. So actually I am not using different machines. It's all running on the same mach

2018-06-26 08:45:35 -0500 asked a question Tf has two or more unconnected trees

Tf has two or more unconnected trees Hey! I was trying to use a Kinect fusion package for my project on Robot Workcell D

2018-05-30 17:45:06 -0500 commented answer octomap, slam, path planning: how does it all fit together?

Thanks for a detailed review!

2018-05-26 13:00:04 -0500 marked best answer arm_controller/joint_trajectory topics not being displayed

Hey!

For my GSoC 2018 project, I had previously attached a Kinect sensor to the UR5 robot, generated MoveIt! Config packages for them and tested it on RViz. I was able to spawn the robot with the controllers activated in Gazebo. The next step of my project was to be able to command the robot in Gazebo using MoveIt!.

In this process of trying to launch the robot in Gazebo, I noticed that the arm_controller/joint_trajectory topics which are related to the action server are not being displayed while using rostopic list. However, the weird part is that on launch, the initial information from the terminal shows that the arm_controller_spawner node has started. This link had a related solution but it didn't work.

I previously downloaded the Universal robot Github package and the ur5.launch file loads the required arm_controller.joint_trajectory topics properly. However, that same thing was not working with my files (which are minor edits of the UR5 files). I am not able to figure out why exactly is this happening. I have attached the related files with this question. Thanks in advance. Edit: While comparing with the UR5 launch, I realised that the arm_controller and joint_state_controller are not loaded successfully with my model as that message is not showing on the terminal with Gazebo launch.

The complete URDF file can be accessed via this Google Drive Link.

Gazebo Robot Launch file

<?xml version="1.0"?>

<!-- Gazebo Launch file -->
<launch>
  <arg name="limited" default="false"/>
  <arg name="paused" default="false"/>
  <arg name="gui" default="true"/>

  <!-- startup simulated world -->
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" default="worlds/empty.world"/>
    <arg name="paused" value="$(arg paused)"/>
    <arg name="gui" value="$(arg gui)"/>
    <arg name="verbose" value="true" />
  </include>

  <!-- send robot urdf to param server -->
  <include file="$(find myworkcell_support)/launch/workcell_ur5.launch">
  <!-- <arg name="limited" value="$(arg limited)"/> -->
  </include>

  <!-- push robot_description to factory and spawn robot in gazebo -->
  <node name="spawn_gazebo_model" pkg="gazebo_ros" type="spawn_model" args="-urdf -param robot_description -model robot -z 0.1" respawn="false" output="screen" />

  <!-- push robot_description to factory and spawn robot in gazebo -->
  <include file="$(find myworkcell_support)/gazebo/launch/controller_utils.launch"/>

  <rosparam file="$(find myworkcell_support)/gazebo/controller/myworkcell_control.yaml" command="load"/>
  <node name="arm_controller_spawner" pkg="controller_manager" type="controller_manager" args="spawn arm_controller" respawn="false" output="screen"/>

</launch>

workcell_ur5.launch file

<launch>
  <arg name="gui" default="true"/>
  <param name="robot_description" command="$(find xacro)/xacro --inorder '$(find myworkcell_support)/urdf/workcell_gazebo_trial1.urdf'" /> 
  <param name="use_gui" value="$(arg gui)"/>
</launch>

controller_utils.launch

<?xml version="1.0"?>
<launch>

  <!-- Robot state publisher -->
  <node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher">
    <param name="publish_frequency" type="double" value="50.0" />
    <param name="tf_prefix" type="string" value="" />
  </node>

  <!-- Fake Calibration -->
  <node pkg="rostopic" type="rostopic" name="fake_joint_calibration"
        args="pub /calibrated std_msgs/Bool true" />

  <!-- joint_state_controller -->
  <rosparam file="$(find myworkcell_support)/gazebo/controller/joint_state_controller.yaml" command="load"/>
  <node name="joint_state_controller_spawner" pkg="controller_manager" type="controller_manager" args="spawn joint_state_controller" respawn="false" output="screen"/>

</launch>

myworkcell_control.yaml

arm_controller:
  type: position_controllers/JointTrajectoryController
  joints:
     - shoulder_pan_joint
     - shoulder_lift_joint
     - elbow_joint
     - wrist_1_joint
     - wrist_2_joint
     - wrist_3_joint
  constraints ...
(more)
2018-05-26 12:59:53 -0500 answered a question arm_controller/joint_trajectory topics not being displayed

So after a bit of experimentation, I realized that the issue was with the URDF file where the control plugin had been pu

2018-05-26 07:55:35 -0500 received badge  Popular Question (source)
2018-05-25 03:47:11 -0500 commented question arm_controller/joint_trajectory topics not being displayed

Oops. Sorry for that. Have removed the screenshots. Thanks!

2018-05-25 03:46:25 -0500 commented question arm_controller/joint_trajectory topics not being displayed

Oops. Sorry for that. Have removed the screenshots.

2018-05-25 03:44:47 -0500 edited question arm_controller/joint_trajectory topics not being displayed

arm_controller/joint_trajectory topics not being displayed Hey! For my GSoC 2018 project, I had previously attached a

2018-05-24 17:58:55 -0500 edited question arm_controller/joint_trajectory topics not being displayed

arm_controller/joint_trajectory topics not being displayed Hey! For my GSoC 2018 project, I had previously attached a

2018-05-24 17:51:45 -0500 asked a question arm_controller/joint_trajectory topics not being displayed

arm_controller/joint_trajectory topics not being displayed Hey! For my GSoC 2018 project, I had previously attached a

2018-05-14 10:22:00 -0500 received badge  Notable Question (source)
2018-05-13 19:00:42 -0500 marked best answer Error in Planning group with MoveIt! Setup Assistant

Hey!

I had successfully created a working URDF file for the UR5 robot with a Kinect sensor attached to the end-effector. I have verified the URDF file using check_urdf. I wished to use the URDF file with Gazebo as well as RViz, for which I was following this link). I am using ROS Kinetic with Ubuntu 16.04.

For creation of the MoveIt! configuration package, I was referring to MoveIt setup assistant tutorial, this tutorial and the ROS Industial tutorial.

I have created the self-collision matrix and the virtual joints as per the ROS-I tutorial. The ROS-I suggested that I add the planning group with the name 'manipulator' and by adding a Kinematic chain from the base_link to the tool0 (end-effector) link. However when I try to add robot poses with this planning group, I get this following error message.

Unable to find joint model group for group: manipulator Are you sure this group has associated joints/links?

Because of this, I was not able to visualise the joint motions as well as set a pose. Any particular reason for this error? I have attached the related pictures for reference. Thanks in advance.

Self Collision checking

Virtual Joints

Planning Groups_General

Planning_Groups_2

Edit: I have checked the same procedure with standard URDF files from the UR5 and UR10 robot. I am still getting the same error.

Update: Added the link to the URDF file

https://drive.google.com/file/d/1_6DP...

2018-05-13 19:00:35 -0500 answered a question Error in Planning group with MoveIt! Setup Assistant

Solved it. Turns out it was a stupid mistake. While making the new planning group, I was adding an extra space at the en

2018-05-13 18:37:49 -0500 edited question Error in Planning group with MoveIt! Setup Assistant

Error in Planning group with MoveIt! Setup Assistant Hey! I had successfully created a working URDF file for the UR5 ro

2018-05-13 18:30:02 -0500 edited question Error in Planning group with MoveIt! Setup Assistant

Error in Planning group with MoveIt! Setup Assistant Hey! I had successfully created a working URDF file for the UR5 ro

2018-05-13 17:46:30 -0500 received badge  Popular Question (source)
2018-05-13 16:54:01 -0500 edited question Error in Planning group with MoveIt! Setup Assistant

Error in Planning group with MoveIt! Setup Assistant Hey! I had successfully created a working URDF file for the UR5 ro