Ask Your Question

MichaelDUEE's profile - activity

2020-12-10 18:19:56 -0600 received badge  Notable Question (source)
2020-12-10 18:19:56 -0600 received badge  Popular Question (source)
2020-07-14 00:33:24 -0600 received badge  Famous Question (source)
2020-07-14 00:33:24 -0600 received badge  Notable Question (source)
2020-06-11 09:57:00 -0600 received badge  Famous Question (source)
2020-04-18 05:43:23 -0600 received badge  Famous Question (source)
2020-04-18 05:43:23 -0600 received badge  Notable Question (source)
2020-04-18 05:43:23 -0600 received badge  Popular Question (source)
2020-04-11 10:29:14 -0600 received badge  Notable Question (source)
2020-04-11 10:29:14 -0600 received badge  Popular Question (source)
2020-03-25 17:07:04 -0600 asked a question Cannot catkin_make moveit package

Cannot catkin_make moveit package I have a package that works with moveit and I also have installed moveit. When I catki

2020-03-10 05:21:11 -0600 commented answer ROS installation error on raspbian buster

Please copy this answer to your question as an edit, because posting an updated error to answers is confusing. :)

2020-03-02 01:52:43 -0600 received badge  Popular Question (source)
2020-02-26 03:03:43 -0600 marked best answer Problem with str in service client

I am writing a service and this is the message :

std_msgs/String pose
---
sensor_msgs/JointState finalpos

This is the client :

#!/usr/bin/env python

import rospy 
from interbotix_moveit.srv import pickitstr,pickitstringResponse
from std_msgs.msg import String
rospy.init_node('service_arm_client')
word=String()
rospy.wait_for_service('/widowxl/arm_service')

pose = rospy.ServiceProxy('/widowxl/arm_service',pickitstr)
word = pickitstringResponse()
word= 'Upright'
finalpose = pose(word)
print(finalpose.finalpose)

And I get this error :

Traceback (most recent call last):
File "/home/michael/catkin_ws/src/interbotix_ros/interbotix_moveit/src/service_client_test.py", line 13, in <module> finalpose = pose(word) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 435, in __call__ return self.call(args, *kwds) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 512, in call transport.send_message(request, self.seq) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 665, in send_message serialize_message(self.write_buff, seq, msg) File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/msg.py", line 152, in serialize_message msg.serialize(b) File "/home/michael/catkin_ws/devel/lib/python2.7/dist-packages/interbotix_moveit/srv/_pickitstr.py", line 58, in serialize _x = self.pose.data AttributeError: 'str' object has no attribute 'data'

What Is the problem ?

2020-02-26 03:03:33 -0600 answered a question Problem with str in service client

I found the problem. I just needed to write it like this : rospy.wait_for_service('/widowxl/arm_service') pose = rospy

2020-02-26 03:03:33 -0600 received badge  Rapid Responder (source)
2020-02-25 15:21:06 -0600 asked a question Problem with str in service client

Problem with str in service client I am writing a service and this is the message : std_msgs/String pose --- sensor_msg

2020-02-25 13:41:20 -0600 commented question How to Subscribe to Imu data and broadcast transform

I think you need to add a callback to your subscriber.

2020-02-25 13:41:20 -0600 received badge  Commentator
2020-02-12 09:11:07 -0600 asked a question Problem with Action Server

Problem with Action Server Hello, I have this message : #goal string start_phrase --- #result geometry_msgs/Point coor

2020-02-12 07:21:45 -0600 marked best answer Problem with Action msg

Hello, I wrote my own Action msg for ROS. This is the msg :

#goal
string start_phrase
---
#result 
point coordinates
---
#feedback
duration time_elapsed

This is my changes in Cmake :

 find_package(catkin REQUIRED
 COMPONENTS   actionlib_msgs  
 geometry_msgs   rospy   std_msgs  
 message_generation ) add_action_files(
 DIRECTORY action    FILES
 camera.action

 )

 ## Generate added messages and services with any dependencies listed
 here  generate_messages(   
 DEPENDENCIES    geometry_msgs   
 actionlib_msgs    std_msgs   )

 catkin_package(
 #  INCLUDE_DIRS include
 #  LIBRARIES camera_action   CATKIN_DEPENDS geometry_msgs rospy
 actionlib_msgs
 #  DEPENDS system_lib )

This is my Package :

  <buildtool_depend>catkin</buildtool_depend>
  <build_depend>geometry_msgs</build_depend>
  <build_depend>rospy</build_depend>
  <build_export_depend>geometry_msgs</build_export_depend>
  <build_export_depend>rospy</build_export_depend>
  <exec_depend>geometry_msgs</exec_depend>
  <exec_depend>rospy</exec_depend>
  <build_depend>message_generation</build_depend>
  <exec_depend>message_runtime</exec_depend>

When I try to catkin_make my src i get this error :

Could not find messages which
'/home/michael/catkin_ws/devel/share/camera_action/msg/cameraAction.msg' depends on. Did you forget to specify generate_messages(DEPENDENCIES ...)?

Cannot locate message [point] in package [camera_action] with paths
[['/home/michael/catkin_ws/devel/share/camera_action/msg']] Call Stack (most recent call first):
/opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
camera_action/CMakeLists.txt:73 (generate_messages)

I see that there is a problem with point. Does someone have any idea ?

2020-02-12 07:21:43 -0600 commented answer Problem with Action msg

Thank you, that worked!

2020-02-11 16:28:38 -0600 commented answer Problem with Action msg

If I specify it like geometry_msgs/Point how should I write this in the Cmake file. geometry_msgs or geometry_msgs/Point

2020-02-11 07:22:05 -0600 edited question Problem with Action msg

Problem with Action msg Hello, I wrote my own Action msg for ROS. This is the msg : #goal string start_phrase --- #resu

2020-02-11 07:21:53 -0600 edited question Problem with Action msg

Problem with Action msg Hello, I wrote my own Action msg for ROS. This is the msg : #goal string start_phrase --- #resu

2020-02-11 07:21:28 -0600 asked a question Problem with Action msg

Problem with Action msg Hello, I wrote my own Action msg for ROS. This is the msg : #goal string start_phrase --- #resu

2019-12-22 20:30:59 -0600 received badge  Notable Question (source)
2019-12-22 20:30:59 -0600 received badge  Popular Question (source)
2019-12-12 08:27:56 -0600 edited answer sick_scan Launch error

First of all to make your lidar work you must enable the lidar and configure its IP address(the IP address must be a val

2019-12-12 08:24:11 -0600 answered a question sick_scan Launch error

First of all to make your lidar work you must enable the lidar and configure its IP address(the IP address must be a val

2019-12-12 08:24:11 -0600 received badge  Rapid Responder (source)
2019-12-12 08:15:02 -0600 commented question How to subscribe to a topic?

In your '???' you must write a callback function. A callback function is function that activates when your subscriber re

2019-12-12 08:14:39 -0600 commented question How to subscribe to a topic?

In your '???' you must write a callback function. A callback function is function that activates when your subscriber re

2019-12-12 08:00:50 -0600 asked a question Recommendations for Visual State Machine Programming

Recommendations for Visual State Machine Programming Hello, I need to build a State Machine for a robot project and I w

2019-11-14 05:27:34 -0600 asked a question What is Joint Trajectory ?

What is Joint Trajectory ? Hello, I set up a joint_trajectory_controller for my simulated robot on Gazebo.I am trying

2019-11-14 05:12:30 -0600 received badge  Enthusiast
2019-11-13 07:21:07 -0600 received badge  Famous Question (source)
2019-11-12 15:40:33 -0600 marked best answer Problem with ROS control and Gazebo.

Hello,

I have a problem with controlling a URDF that I exported from SolidWorks. (Ubuntu 16.04 , Kinetic, Gazebo 7.x) I followed this tutorial and I wanted to implemented on my robot. All the controllers are starting correctly so as the Gazebo simulation also the Node publish the data correctly I have checked it with echo-ing the topic and with different values for the data. Is there a chance not working because the PID values ?

All the transmissions look like this :

<transmission name="tran1">
<type>transmission_interface/SimpleTransmission</type>
<joint name="Joint_1">
  <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
</joint>
<actuator name="motor1">
  <hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
  <mechanicalReduction>1</mechanicalReduction>
</actuator>
</transmission>

The controller is like this (for all joints) :

joint_state_controller:
    type: joint_state_controller/JointStateController
    publish_rate: 50
joint1_position_controller:
    type: effort_controllers/JointPositionController
    joint: Joint_1
    pid: {p: 100.0, i: 0.01, d: 10.0}

And I have this node:

rospy.init_node('ArmMovement')
pub1=rospy.Publisher("/rrbot/joint1_position_controller/command",Float64,queue_size=10 )
rate = rospy.Rate(50)
ArmCor1= Float64()
ArmCor1.data=0
pub1.publish(ArmCor1)
rate.sleep()

Edit#1 : Part of URDF for the Joint_1:

 <joint name="Joint_1" type="revolute">
<origin
  xyz="0 0 -0.008"
  rpy="1.5708 0 0" />
<parent link="base_link" />
<child link="Link_1" />
<axis
  xyz="0 1 0" />
<limit
  lower="0"
  upper="3.14"
  effort="0"
  velocity="0" />
 </joint>
2019-11-12 15:40:33 -0600 received badge  Scholar (source)
2019-11-12 15:40:18 -0600 answered a question Problem with ROS control and Gazebo.

Thank you guys for your help, it actually work after your comments. This was my Joint_1 : <joint name="Joint_1" typ

2019-11-12 13:59:02 -0600 commented question Problem with ROS control and Gazebo.

@Jasmin Thank you a lot for your help, it actually works!!

2019-11-06 16:39:07 -0600 received badge  Notable Question (source)
2019-11-06 16:36:00 -0600 commented answer Problem with ROS control and Gazebo.

@gvdhoorn I made a while loop and still got the same results. I used echo to see if the message was published and the me

2019-11-06 15:59:02 -0600 edited question Problem with ROS control and Gazebo.

Problem with ROS control and Gazebo. Hello, I have a problem with controlling a URDF that I exported from SolidWorks. (

2019-11-06 15:56:21 -0600 commented question Problem with ROS control and Gazebo.

@Jasmin. Of course, I have edited the question!

2019-11-06 15:55:23 -0600 edited question Problem with ROS control and Gazebo.

Problem with ROS control and Gazebo. Hello, I have a problem with controlling a URDF that I exported from SolidWorks. (

2019-11-06 14:37:04 -0600 commented question Problem with ROS control and Gazebo.

No I dont have any warning or errors. The controllers are starting correclty and the message is successfully transimitte

2019-11-06 14:36:44 -0600 commented question Problem with ROS control and Gazebo.

No I dont have any warning or errors. The controllers are starting correclty, and the message is successfully transimitt

2019-11-05 02:59:31 -0600 received badge  Popular Question (source)