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

PGTKing's profile - activity

2023-04-12 01:24:12 -0500 received badge  Notable Question (source)
2023-04-12 01:24:12 -0500 received badge  Famous Question (source)
2023-02-24 01:59:02 -0500 received badge  Popular Question (source)
2023-02-22 10:28:11 -0500 received badge  Notable Question (source)
2023-02-21 13:12:06 -0500 received badge  Popular Question (source)
2023-02-21 08:40:31 -0500 received badge  Famous Question (source)
2023-02-21 08:39:29 -0500 received badge  Notable Question (source)
2023-02-20 22:48:26 -0500 asked a question why does my servo feedback take so long to register new position.

why does my servo feedback take so long to register new position. Attached in code #!/usr/bin/env python3 from interb

2023-02-20 14:01:17 -0500 asked a question how to get faster joint feedback from motors

how to get faster joint feedback from motors Im using ros1 is ros2 faster?

2023-02-20 14:00:17 -0500 asked a question how to get faster feedback from motors

how to get faster feedback from motors Trying to get joint position faster from motors, is there a way to optimize feedb

2023-02-06 01:37:13 -0500 received badge  Famous Question (source)
2022-12-30 11:40:34 -0500 received badge  Notable Question (source)
2022-11-29 08:38:06 -0500 received badge  Popular Question (source)
2022-11-29 08:38:06 -0500 received badge  Notable Question (source)
2022-11-18 00:11:18 -0500 received badge  Popular Question (source)
2022-11-17 19:02:04 -0500 commented question subscriber class not returning value

I'm just in state of frustration and anxiety. Been trying to finish this code for 2 years, learned a lot about ros and p

2022-11-16 21:44:38 -0500 asked a question subscriber class not returning value

subscriber class not returning value here is code class Robotreacher(object): def __init__(self): #rospy.init_node(

2022-11-14 10:33:20 -0500 received badge  Popular Question (source)
2022-11-14 02:26:54 -0500 commented answer trying to get joint data from subscriber class function

hey, solved issue appreciate you taking time to look at my problem.

2022-11-14 01:02:39 -0500 asked a question unreadable message from subscriber call back

unreadable message from subscriber call back getting this message from joint callback, don't know what it means r is <

2022-11-13 21:21:02 -0500 asked a question getting unexpected return from callback class

getting unexpected return from callback class here is the code. note:robotreacher class has 3 functions in it the init,

2022-11-12 17:42:30 -0500 commented answer trying to get joint data from subscriber class function

Did you see my latest question? It's working now but I'm getting an unreadable message

2022-11-11 17:27:22 -0500 received badge  Notable Question (source)
2022-11-11 15:13:15 -0500 asked a question getting unexpected message from subcriber callback

getting unexpected message from subcriber callback here is code class Robotreacher: def __init__(self): ros

2022-11-10 15:41:04 -0500 asked a question joint states not updating

joint states not updating here is my code class Arm: def __init__(self): self.sub = rospy.Subscriber('/rx150/joint_

2022-11-10 15:39:04 -0500 edited question trying to get joint data from subscriber class function

trying to get joint data from subscriber class function Here is the code class Arm: def __init__(self): sel

2022-11-10 15:37:11 -0500 commented answer trying to get joint data from subscriber class function

not working :(

2022-11-09 03:02:43 -0500 received badge  Popular Question (source)
2022-11-09 01:29:28 -0500 received badge  Notable Question (source)
2022-11-08 19:43:56 -0500 commented answer trying to get joint data from subscriber class function

Im getting nonetype when I print("joints states are", arm.return_waistp()) thank you for helping me by the way. but Im t

2022-11-08 19:43:18 -0500 commented answer trying to get joint data from subscriber class function

Im getting nonetype when I print("joints states are", arm.return_waistp()) thank you for helping me by the way.

2022-11-08 19:42:50 -0500 commented answer trying to get joint data from subscriber class function

Im getting nonetype when I print("joints states are", arm.return_waistp())

2022-11-08 19:42:18 -0500 commented answer trying to get joint data from subscriber class function

Im getting nonetype when I print("joints states are", arm.return_waistp())

2022-11-08 17:33:52 -0500 edited question trying to get joint data from subscriber class function

trying to get joint data from subscriber class function here is the code class Arm: def __init__(self): self.sub =

2022-11-08 17:32:40 -0500 asked a question trying to get joint data from subscriber class function

trying to get joint data from subscriber class function here is the code class Arm: def __init__(self): self.sub =

2022-11-08 10:01:48 -0500 received badge  Popular Question (source)
2022-11-07 17:53:20 -0500 asked a question Using global variables with a subscriber

ros subscriber not defined using global variables here is code if __name__ == '__main__': rospy.init_node('robot_contro

2022-10-27 20:47:53 -0500 asked a question Need help with openai gym gazebo install

Need help with openai gym gazebo install when I run the bash turtlebot_setup.bash command in terminal I get this error

2022-08-16 23:46:11 -0500 received badge  Famous Question (source)
2022-08-16 23:44:54 -0500 received badge  Famous Question (source)
2022-08-16 23:35:25 -0500 received badge  Notable Question (source)
2022-08-13 00:04:41 -0500 marked best answer Trying to publish to joint with python script

Here is my script

#!/usr/bin/env python3
import rospy
from std_msgs.msg import String


import rospy
from std_msgs.msg import Float64

def talker():
    pub = rospy.Publisher('/rx150/wrist_rotate_controller/command', Float64, queue_size=10)
    rospy.init_node('rx150_talker', anonymous=True)
    rate = rospy.Rate(10)
    while not rospy.is_shutdown():
        position = -1.0
        rospy.loginfo(position)
        pub.publish(position)
        rate.sleep()

if __name__ == '__main__':
    try:
        talker()
    except rospy.ROSInterruptException:
        pass

When executing this script the gazebo simulated robot doesn't respond to the joint command I give.

The simulated robot however does respond to this command when I type it in the terminal:

rostopic pub -1 /rx150/wrist_angle_controller/command std_msgs/Float64 "data: -1.0"

2022-08-12 13:24:03 -0500 commented answer Trying to publish to joint with python script

Thank you, sometimes you overlook small mistakes. Appreciate it.

2022-08-12 11:42:39 -0500 received badge  Popular Question (source)
2022-08-11 16:18:20 -0500 asked a question Trying to publish to joint with python script

Trying to publish to joint with python script Here is my script #!/usr/bin/env python3 import rospy from std_msgs.msg

2022-07-13 09:50:20 -0500 received badge  Notable Question (source)
2022-07-13 09:50:20 -0500 received badge  Popular Question (source)
2022-05-26 14:12:30 -0500 received badge  Famous Question (source)
2022-03-05 17:51:37 -0500 received badge  Notable Question (source)
2022-03-05 17:51:37 -0500 received badge  Famous Question (source)