This is the lookup table linking the transport block size index (determined by modulation and coding scheme) and the number of resource blocks to an LTE transport block size. It's taken from 3GPP [TS 36.213][36.213] (Table 7.1.7.2.1-1) at version 15.0.0. Multiply a TBS by 1000 to get the max throughput in bps.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from matplotlib.cm import get_cmap | |
import rospy | |
import sensor_msgs.msg as sensor_msgs | |
import std_msgs.msg as std_msgs | |
def point_cloud(points, parent_frame): | |
""" Creates a point cloud message. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import argparse | |
import itertools | |
import cv2 | |
import numpy as np | |
if __name__=='__main__': | |
parser = argparse.ArgumentParser( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import rospy | |
# Messages sent to my_logger will not be directed to stdout. | |
# They will show up in rqt_console with my_logger associated to the node. | |
logging.getLogger('my_logger').addHandler(rospy.impl.rosout.RosOutHandler()) | |
logging.getLogger('my_logger').setLevel(logging.INFO) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Simple solution for streaming audio from Gqrx to Firefox. | |
Requires the opusenc command line tool. | |
This program uses the fact that Opus files can be concatenated to form a valid | |
stream and that Firefox can play these streams natively. The drawback is the | |
overhead created by repeatedly inserting containers and metadata into the | |
stream. | |
- Check https://fastapi.tiangolo.com/tutorial/ to see how to run the server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydrake.symbolic import Variable | |
from pydrake.systems.analysis import Simulator | |
from pydrake.systems.controllers import PidController | |
from pydrake.systems.framework import BasicVector, DiagramBuilder, LeafSystem | |
from pydrake.systems.primitives import SymbolicVectorSystem | |
k = 1 | |
s = 1 | |
m = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydrake.symbolic import Variable | |
from pydrake.systems.analysis import Simulator | |
from pydrake.systems.controllers import PidController | |
from pydrake.systems.framework import DiagramBuilder | |
from pydrake.systems.primitives import SymbolicVectorSystem | |
x, xd = Variable('x'), Variable('xdot') | |
f = Variable('f') | |
state = [x, xd] | |
k = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import rospy | |
def get_single_msg(topic, type_, timeout=None): | |
""" Utility function that gets a single message from a ROS topic. | |
Args: | |
topic: ROS topic (string). |
NewerOlder