Ask Your Question

fitter's profile - activity

2020-12-18 13:17:38 -0600 marked best answer How to check which package depends on ros-kinetic-librealsense2

Hi, I stumbled upon an annoying problem. I'm building quite big docker image containing robot's workspace. Docker build process fails on step where I'm trying to resolve and install missing dependencies using rosdep. Looks like one of the packages depends on ros-kinetic-librealsense2 package which simply does not exists and kills my building process. I'm getting:

apt: command [sudo -H apt-get install -y ros-kinetic-librealsense2] failed

apt: Failed to detect successful installation of [ros-kinetic-librealsense2]

How to locate that problematic package? I tried

rosdep which-depends

but it returns nothing.

Thx!

2020-02-09 10:18:07 -0600 received badge  Famous Question (source)
2020-02-09 10:18:07 -0600 received badge  Notable Question (source)
2019-07-30 07:08:36 -0600 received badge  Enthusiast
2019-07-08 08:13:58 -0600 received badge  Nice Answer (source)
2019-07-03 07:51:04 -0600 received badge  Self-Learner (source)
2019-07-03 07:12:38 -0600 answered a question How to check which package depends on ros-kinetic-librealsense2

After some searching I found this discussion: https://github.com/IntelRealSense/realsense-ros/issues/808 Looks like the

2019-07-03 07:12:38 -0600 received badge  Rapid Responder (source)
2019-07-03 06:59:50 -0600 commented question How to check which package depends on ros-kinetic-librealsense2

Thx, I did that, but in fact I checked for "ros-kinetic-librealsense2". I didn't knew that dependencies are defined with

2019-07-03 04:45:11 -0600 received badge  Popular Question (source)
2019-07-02 04:35:47 -0600 asked a question How to check which package depends on ros-kinetic-librealsense2

How to check which package depends on ros-kinetic-librealsense2 Hi, I stumbled upon an annoying problem. I'm building qu

2018-04-26 10:20:15 -0600 received badge  Famous Question (source)
2018-03-05 08:31:33 -0600 received badge  Self-Learner (source)
2018-03-05 08:31:33 -0600 received badge  Teacher (source)
2018-03-05 07:31:13 -0600 edited answer Wrong argument type when writing quaternion orientation to pose message

Ok, I figured out whats wrong. The problem is trivial, but because of the exception handling it was quite complicated to

2018-03-05 07:28:39 -0600 edited answer Wrong argument type when writing quaternion orientation to pose message

Ok, I figured out whats wrong. The problem is trivial, but because of the exception handling it was quite complicated to

2018-03-05 07:23:30 -0600 received badge  Organizer (source)
2018-03-05 07:20:33 -0600 marked best answer Wrong argument type when writing quaternion orientation to pose message

Edit:

I tried to just simply copy the quaternion values and hardcode them as an orientation coordinates. Results are the same, so maybe problem comes from another part of my grasp msg? I dumped the message which I'm trying to use to pick my object: link text


Hi, I'm trying to generate moveit_msgs/Grasp Message using Python API and I'm getting ROSSerializationException in place where calculated quaternion values are assigned into geometry_msgs/Pose Message/orientation.

Piece of code where I'm making Grasp message and trying to get quaternion from euler angles:

p = PickPlaceInterface("arm", "gripper", verbose=True)
g = Grasp()

g.id = "test"
gp = PoseStamped()
gp.header.frame_id = "base_link"
gp.pose.position.x = grasps[0].surface.x
gp.pose.position.y = grasps[0].surface.y
gp.pose.position.z = grasps[0].surface.z

quat = quaternion_from_euler(grasps[0].approach.x, grasps[0].approach.y, grasps[0].approach.z)

print ("Quat type: " + str(type(quat[0])))
print ("Pose orient type: " + str(type(gp.pose.orientation.x)))

gp.pose.orientation.x = float(quat[0]) 
gp.pose.orientation.y = float(quat[1])
gp.pose.orientation.z = float(quat[2])
gp.pose.orientation.w = float(quat[3])
g.grasp_pose = gp

g.pre_grasp_approach.direction.header.frame_id = "base_link"
g.pre_grasp_approach.direction.vector.x = 1.0 
g.pre_grasp_approach.direction.vector.y = 0.0 
g.pre_grasp_approach.direction.vector.z = 0.0 
g.pre_grasp_approach.min_distance = 0.001
g.pre_grasp_approach.desired_distance = 0.1 

g.pre_grasp_posture.header.frame_id = "base_link"
g.pre_grasp_posture.joint_names = ["gripper_axis"]
pos = JointTrajectoryPoint()
pos.positions.append(0.0)
g.pre_grasp_posture.points.append(pos)

g.grasp_posture.header.frame_id = "base_link"
g.grasp_posture.joint_names = ["gripper_axis"]
pos = JointTrajectoryPoint()
pos.positions.append(0.02)
pos.effort.append(0.0)
g.grasp_posture.points.append(pos)

g.allowed_touch_objects = []
g.max_contact_force = 0
g.grasp_quality = grasps[0].score

p.pickup("obj", [g, ], support_name="supp")

grasps[0].approach is a geometry_msgs/Vector3 message.

grasps is a list of GraspConfig.msg which is defined here: link text

I'm getting this exception:

 Traceback (most recent call last):   File "pick_and_place.py", line 83, in <module>
    err = p.pickup("obj", [g, ], support_name="supp")   File "/opt/ros/kinetic/lib/python2.7/dist-packages/moveit_python/pick_place_interface.py", line 154, in pickup
    self._pick_action.send_goal(g)   File "/opt/ros/kinetic/lib/python2.7/dist-packages/actionlib/simple_action_client.py", line 92, in send_goal
    self.gh = self.action_client.send_goal(goal, self._handle_transition, self._handle_feedback)   File "/opt/ros/kinetic/lib/python2.7/dist-packages/actionlib/action_client.py", line 553, in send_goal
    return self.manager.init_goal(goal, transition_cb, feedback_cb)   File "/opt/ros/kinetic/lib/python2.7/dist-packages/actionlib/action_client.py", line 466, in init_goal
    self.send_goal_fn(action_goal)   File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 886, in publish
    raise ROSSerializationException(str(e)) rospy.exceptions.ROSSerializationException: <class 'struct.error'>: 'required argument is not a float' when writing 'x: 0.008194649141243238 y:
0.1413781390046223 z: 0.44856469150891914 w: 0.8824595101581431'

Looks simple, I'm just messing with types. But when I checked them with:

print ("Quat type: " + str(type(float(quat[0]))))
print ("Pose orient type: " + str(type ...
(more)
2018-03-05 07:20:33 -0600 received badge  Scholar (source)
2018-03-05 07:20:18 -0600 answered a question Wrong argument type when writing quaternion orientation to pose message

Ok, I figured out whats wrong. The problem is trivial, but because of the exception handling it was quite complicated to

2018-02-28 14:24:32 -0600 received badge  Student (source)
2018-02-28 08:09:06 -0600 edited question Wrong argument type when writing quaternion orientation to pose message

Wrong argument type when writing quaternion orientation to pose message Edit: I tried to just simply copy the quaternio

2018-02-28 08:09:06 -0600 received badge  Editor (source)
2018-02-28 08:04:21 -0600 received badge  Notable Question (source)
2018-02-28 06:30:59 -0600 received badge  Supporter (source)
2018-02-28 06:30:54 -0600 commented answer Wrong argument type when writing quaternion orientation to pose message

You are right, sorry. I edited my post with complete code where I build a grasp message. Error appears when I try to run

2018-02-28 06:25:08 -0600 edited question Wrong argument type when writing quaternion orientation to pose message

Wrong argument type when writing quaternion orientation to pose message Hi, I'm trying to generate moveit_msgs/Grasp Mes

2018-02-28 02:39:03 -0600 commented question Wrong argument type when writing quaternion orientation to pose message

numpy.float64

2018-02-28 01:44:55 -0600 received badge  Popular Question (source)
2018-02-27 11:02:40 -0600 asked a question Wrong argument type when writing quaternion orientation to pose message

Wrong argument type when writing quaternion orientation to pose message Hi, I'm trying to generate moveit_msgs/Grasp Mes