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

Catherine Wong's profile - activity

2021-01-07 01:43:52 -0500 received badge  Enlightened (source)
2021-01-07 01:43:52 -0500 received badge  Good Answer (source)
2020-04-21 07:28:40 -0500 received badge  Nice Answer (source)
2019-05-28 12:13:53 -0500 received badge  Teacher (source)
2019-01-09 16:32:20 -0500 received badge  Supporter (source)
2019-01-09 16:32:00 -0500 commented question problem while running the smach_viewer

@Kapcirt @ShehabAldeen Did you find a solution for this? I downloaded the version from apt.

2019-01-09 16:31:47 -0500 commented question problem while running the smach_viewer

@Kapcirt @ShehabAldeen Do you find a solution for this? I downloaded the version from apt.

2018-08-19 12:23:12 -0500 received badge  Enthusiast
2018-08-18 23:51:32 -0500 answered a question Unmet dependencies when installing Melodic on Ubuntu 18.04

I had the same problem. For me, I ran sudo apt-get install ros-desktop-full before I realized that is not Melodic. I rem

2016-07-28 10:07:38 -0500 commented answer Navigation stack, no laser

I modified my launch file as here to replace amcl with fake localization and it worked!

2013-02-27 00:08:01 -0500 received badge  Famous Question (source)
2012-11-23 12:48:06 -0500 received badge  Notable Question (source)
2012-11-15 05:34:34 -0500 received badge  Popular Question (source)
2012-11-03 02:28:39 -0500 received badge  Student (source)
2012-10-30 16:51:28 -0500 received badge  Editor (source)
2012-10-30 16:50:51 -0500 asked a question hector_quadrotor not responding cmd_vel message

Hello, I am having the 1.6.16s ros-fuerte-simulator gazebo with Ubuntu 12.04 (64bit). I am having a similar problem as this post:

link:Hector_Quadrotor Gazebo - Quadrotor x/y position does not update

The difference is I can control the quadrotor in the two demos but not when I tried to control the robot with my own code. The one extra thing is my robot pose is not updated as well after I publish the msg. So basically right now when I publish a twist message to '/cmd_vel' and then I check the state with /gazebo/get_model_state', the linear and angular component under twist are all zero. Does anyone know why? Here's my code (without the part that I set my robot's pose):


def __init__(self, proj, shared_data, velocityTopic='/cmd_vel'):

    self.pose_handler = proj.h_instance['pose']
    print self.pose_handler.model_name
    try:
        #open a publisher for the base controller of the robot
        self.pub = rospy.Publisher(velocityTopic, Twist)

        # for the pr2, use /base_controller/command
        # the turtlebot takes /cmd_vel
    except:
        print 'Problem setting up Locomotion Command Node'


def sendCommand(self, cmd):

    #Twist is the message type and consists of x,y,z linear velocities
    #and roll, pitch, yaw orientation velocities (x,y,z)
    twist=Twist()

    #Positive x is forward on robots in Gazebo
    twist.linear.x=cmd[0]*4   

    #Angluar z is yaw or rotation in the xy plane
    twist.angular.z=cmd[1]*1.5

    try:
        #Publish the command to the robot
        self.pub.publish(twist)
        rospy.wait_for_service('/gazebo/get_model_state')
        gms = rospy.ServiceProxy('/gazebo/get_model_state', GetModelState)
        resp = gms(self.pose_handler.model_name,'world')
        print >>sys.__stdout__,'resp:' + str(resp)
    except:
        print 'Error publishing Twist Command'

Thank you for your help.

2012-10-30 16:29:14 -0500 answered a question Hector_Quadrotor Gazebo - Quadrotor x/y position does not update

Hello, I am having the 1.6.16s ros-fuerte-simulator gazebo with Ubuntu 12.04 and I am still experiencing the same problem. The one extra thing is my pose are not updated as well after I publish the msg. So basically right now when I publish a twist message to '/cmd_vel' and then I check the state with /gazebo/get_model_state', the linear and angular component under twist are all zero. Does anyone know why? Here's my code (without the part that I set my robot's pose):


def __init__(self, proj, shared_data, velocityTopic='/base_controller/command'):

    self.pose_handler = proj.h_instance['pose']
    print self.pose_handler.model_name
    try:
        #open a publisher for the base controller of the robot
        self.pub = rospy.Publisher(velocityTopic, Twist)

        # for the pr2, use /base_controller/command
        # the turtlebot takes /cmd_vel
    except:
        print 'Problem setting up Locomotion Command Node'


def sendCommand(self, cmd):

    #Twist is the message type and consists of x,y,z linear velocities
    #and roll, pitch, yaw orientation velocities (x,y,z)
    twist=Twist()

    #Positive x is forward on robots in Gazebo
    twist.linear.x=cmd[0]*4   

    #Angluar z is yaw or rotation in the xy plane
    twist.angular.z=cmd[1]*1.5

    try:
        #Publish the command to the robot
        self.pub.publish(twist)
        rospy.wait_for_service('/gazebo/get_model_state')
        gms = rospy.ServiceProxy('/gazebo/get_model_state', GetModelState)
        resp = gms(self.pose_handler.model_name,'world')
        print >>sys.__stdout__,'resp:' + str(resp)
    except:
        print 'Error publishing Twist Command'

Thank you for your help.